Refreshing a single portlet rather than the whole portal page
Ok, here's my situation.
I have two pdk portlets on my portal that communicate through page parameters. Portlet A has a bunch of search fields, a customer drop-down list, parts drop-down list, division, etc. Portlet B takes those parameters, queries the database, and displays the results. I would like to be able to refresh portlet B without reloading the whole portal page.
I have onchange events on all of my drop-downs that will do a javascript post back to portal, which will in turn set my page parameters, and I see there is a 'refreshPortlet' function in a javascript file that portal provides that will refresh a single portlet based on a portletReferenceId. It is normally called when a refresh button is clicked in the portlet header, but I don't see any reason I can't call it after my javascript post, that is, if I had the portletReferenceId for the other portlet. I thought about making a hidden html table on the page that, I could fill with the portlet names and ids for each portlet as they load, that way I could reference that list from any portlet. The problem is I can't figure out where the ids are coming from. Based on the code behind the button, the function is looking for something like this 646_701285_646_1_701271, but the closest thing I can come up with is this 676114_POSTCONTENTPORTLET_467414915 which I got from PortletRenderRequest.getPortletInstance().getInstanceName(). As you can see, it's not even close. Does anyone know where the correct id could be coming from? It's got to be available to me somewhere, doesn't it?
The only other option I can think of to accomplish my goal is to use straight up ajax to display portlet B, but that kind of defeats the purpose of portal doesn't it?
Any help would be greatly appreciated.
Thanks,
Doug
You can use Ctrl+F4 to close the current tab. I don't think that you can change the Alt+F4 action with Keyconfig.
Similar Messages
-
Sharing certain groups in address book rather than the whole address book
Hi
I haven't got server yet in our office but we are looking to do this. Currently we just share calendars and other bits and pieces but I'm looking to get server in place. Sharing the address book requires giving a user our iCloud password and letting them look at the address book as a whole. We really only want to share certain phone numbers like our company staff phone numbers rather than our financial clients and other sensitive contacts.
Is it possible to only allow a "user" to access certain, or 1 group in address book rather than the whole address book library itself by using osx server
Many thanksHi Jaime,
I just wanted to jump in here with a quick question... on Mac OS X Server my understanding was that with the open directory, you can't designate organizational groups for the ldap service. Without that ability, how are you limiting what ldap users can see?
In our setup, our LDAP settings would be similar to
cn=users,dc=example,dc=com
What format would you use to say show only members of the group "examplegroup"?
Thanks! -
Since I've bound the "Close" (ALT+F4) action to one of the auxiliary mouse buttons, when I'm in Firefox I'd like the button to close a tab instead of the whole window.
Binding another mouse button to CTRL+W could be done, but I'd like to have only one button to the "Close" action bound in the mouse and I want it to close a single tab not all the window in Firefox.
Thank you.You can use Ctrl+F4 to close the current tab. I don't think that you can change the Alt+F4 action with Keyconfig.
-
Hi Folks,
When I attach a jpg or pdf to a mail it shows as the whole document "pasted" into the mail. Anyone know how I get the file to just show as an icon and not as a mass of pasted in docs?
Thanks,
PedroFor your own viewing, you can of course control-click on the attachment and select "View as Icon".
For others' viewing, it depends upon their email reader. To ensure that attachments are not displayed expicitly you can put them all in a zip file (via control click and "Compress") then attaching them, or you can use third party stuff like Attachment Tamer.
charlie -
I am struggling to work with spot colours, using scanned images edited in Photoshop for use in InDesign to then go to print.
We print to two plates to save money for our publication. In this case magenta and black.
I could use the spot colour mode but that works with curves and I only want a certain part magenta. Imagine a business card with a gloss finish where I only want to apply it to certain part ie the name of the employee, using a curve would match a certain shade therefore this method would be unsuitable.
I have also tried using channels, one grayscale and one magenta, but using the file types either InDesign bugs or it comes out in mono.
It isn't possible to recreate the logo in InDesign, if only it was this easy...
If someones already discussed this, I can't find it, but if someone could point me in the right direction—I'd be very grateful!
Using Photoshop CS4, InDesign CS4. Access to Adobe Cloud at home...I'm assuming at least some people on here must have experience of the Scintilla control for creating a Notepad++ type application. I'd like to use this control, unfortunately there is very little in the way of documentation or working examples
around
>unfortunately there is very little in the way of documentation
Have you read all of this?
Scintilla Documentation
http://www.scintilla.org/ScintillaDoc.html
>or working examples around
Have you examined this project in detail?
SciTE is a SCIntilla based Text Editor.
http://www.scintilla.org/SciTE.html
SciTE Documentation
http://www.scintilla.org/SciTEDoc.html
- Wayne -
I couldn't find a suggestion box, or anything relating to this topic. Is there anyway that on the next Firefox update we will be able to mute tabs separately? Since there are games/adds that have no mute options, and can get annoying while listening to music.
I have seen nothing like that as planned for in future Firefox versions.
There are a few extensions available for Firefox that can make use of the sides of Firefox for displaying the Tab bar and move items that might be normally placed on a Toolbar to the Sidebar. <br />
Sidebar Tabs - https://addons.mozilla.org/en-US/firefox/addon/9181/ <br />
Tab Sidebar - https://addons.mozilla.org/en-US/firefox/addon/6535/ <br />
All in one Sidebar - https://addons.mozilla.org/en-US/firefox/addon/1027/
On my widescreen desktop monitor, I combined the contents of the three default toolbars into one toolbar. <br />
[https://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar] -
How can I reply to only 1 person rather than the whole group
On my iPhone 5 how do I change the settings so that when I am part of a group that receives a message I can reply to only the sender without the other recipients seeing my reply?
There is no settings for that. YOu would have to create a new message to that sender.
-
How do you shufle play a playlist rather than the whole library?
iPod newby, sorry, but is there a way?
If you turn on "Shuffle: Songs" in Settings, then start playing a playlist on the iPod, it will be shuffled.
Beavis2084 -
How can I get just the text to resize, rather than the entire web page?
I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?
''How can I get just the text to resize -- zoom text only''
steps
#"Alt" if no menu bar, then
# View > Zoom > Zoom Text Only
Zoom text of web pages - MozillaZine Knowledge Base
:http://kb.mozillazine.org/Zoom_text_of_web_pages
<br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small> -
I always get a "generic" Goggle page to recreate every time I open Firefox or click the Home button. Firefox (or Goggle) can't remember the settings.
No I'm not using NoScript, but I'm pleased to report that the problem got resolved by deleting the original bookmark, logging in again, opening Google calendar, then bookmarking it again.
-
Why use Protected Overide Sub OnPaint rather than the standard Paint_Event ?
I notice many good programmers use this following method rather than the usual Paint_Event when painting to the form.
Protected Overrides Sub OnPaint(e As PaintEventArgs)
Dim g As Graphics = e.Graphics
g.SmoothingMode = Drawing2D.SmoothingMode.HighQuality
g.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic
MyBase.OnPaint(e)
End Sub
Can anybody share the reasons why? Thanks
Top Tip: Toothache? Cut paper towel to 2"square. Smear with olive oil. Sprinkle on Cayenne Pepper. Fold over few times to form small wad. Tuck in between wall of mouth and gum. Leave 1 - 2 hrs. You will thank me!OK Crazypennie, maybe you are right. I tend to rant on a bit sometimes.
Also, maybe the jumpy graphics is made worse because the animation output is not synced with the video hardware refresh rate. We can get around that slightly by using a very high fps.
Hi Leon,
I tried modifying your code using a GraphicsFrame class that I wrote a little while back, the class utilizes the bufferedcontext/bufferedgraphics, instead of using the forms graphics directly. In theory, all objects should be rendered to the buffer before
the forms graphics object. Is this less glitchy/faster on your pc? It seemed less glitchy/faster on mine..., and previous benchmarks show that using buffered graphics in this manner improved render time.
You can read the discussion on
this thread.
Option Strict On
Option Explicit On
Option Infer Off
Public Class Form11 ' drawing Code by Paul Ishak Apr 2015 A spinning pie chart. My timing code.
Private Angle As Single = 100
Private NextIncrement As Single = 1
Private Randomizer As New Random(Now.Millisecond)
Private SliceColors As New List(Of Color)
Private SlicesOnWheel As Integer = 24
Private Velocity As Single = 0
Private WheelRadius As Integer = 300
Private WheelLocation As New Point(50, 50)
Private SW As New Stopwatch
Private SFlag As Boolean ' wheel is currently spinning
Private CntMS As Integer ' count the milliseconds
Protected Overrides Sub OnPaint(e As PaintEventArgs)
Dim gFrame As New GraphicsFrame(e.Graphics, Me.ClientRectangle.Size)
Dim g As Graphics = gFrame.Graphics
g.SmoothingMode = Drawing2D.SmoothingMode.HighQuality
g.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic
g.Clear(Me.BackColor)
Dim sliceAngle As Single = CSng(360 / SlicesOnWheel)
Dim rect As New Rectangle(WheelLocation, New Size(WheelRadius, WheelRadius))
Dim curveWidth As Integer = CInt(WheelRadius - (WheelRadius / (2.0! * 0.9)))
Dim rect2 As New Rectangle(rect.Left + curveWidth, rect.Top + curveWidth, rect.Width - curveWidth * 2, rect.Height - curveWidth * 2)
Dim inc As UInteger = UInteger.MaxValue \ 360
For I As Single = 0 To 359 Step sliceAngle
g.FillPie(New SolidBrush(SliceColors(CInt(I / sliceAngle))), rect, I + NormalizeAngle(Angle), sliceAngle)
g.DrawPie(Pens.White, rect, I + NormalizeAngle(Angle), sliceAngle)
Next
g.FillEllipse(Brushes.Black, rect2)
g.DrawEllipse(Pens.White, rect2)
g.DrawEllipse(Pens.White, rect)
MyBase.OnPaint(e)
If SFlag Then
If Me.Text = " " Then Me.Text = "" Else Me.Text = " "
End If
gFrame.Render()
gFrame.Dispose()
MyBase.OnPaint(e)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnSpin.Click
If Not SFlag Then
Velocity = Randomizer.Next(3, 5)
NextIncrement = Velocity
SFlag = True
CntMS = 0 : SW.Reset() : SW.Start()
If Me.Text = " " Then Me.Text = "" Else Me.Text = " "
End If
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.DoubleBuffered = True
SliceColors.Add(Color.Black)
SliceColors.Add(Color.LightBlue)
SliceColors.Add(Color.SeaGreen)
SliceColors.Add(Color.Yellow)
SliceColors.Add(Color.Red)
SliceColors.Add(Color.LightBlue)
SliceColors.Add(Color.Orange)
SliceColors.Add(Color.Violet)
SliceColors.Add(Color.Yellow)
SliceColors.Add(Color.Black)
SliceColors.Add(Color.Green)
SliceColors.Add(Color.Black)
SliceColors.Add(Color.Green)
SliceColors.Add(Color.Red)
SliceColors.Add(Color.Blue)
SliceColors.Add(Color.SeaGreen)
SliceColors.Add(Color.Pink)
SliceColors.Add(Color.Black)
SliceColors.Add(Color.Purple)
SliceColors.Add(Color.SkyBlue)
SliceColors.Add(Color.Aqua)
SliceColors.Add(Color.White)
SliceColors.Add(Color.Red)
SliceColors.Add(Color.Blue)
SliceColors.Add(Color.Pink)
SliceColors.Add(Color.SeaGreen)
SliceColors.Add(Color.Orange)
ClientSize = New Size(375, 375)
Me.Show()
btnSpin.Refresh()
End Sub
Public Function NormalizeAngle(value As Single) As Single
Return value Mod 360.0!
End Function
Private Sub Form11_TextChanged(sender As Object, e As EventArgs) Handles Me.TextChanged
If Not SFlag Then Exit Sub
Angle = NormalizeAngle(Angle + NextIncrement)
NextIncrement = CSng(NextIncrement - 0.0033)
If NextIncrement <= 0.0033 Then
SFlag = False : SW.Stop() : Exit Sub
End If
Invalidate()
CntMS += 5 ' <<< set timer interval here <<<
Do Until SW.ElapsedMilliseconds > CntMS
Loop
End Sub
End Class
Public Class GraphicsFrame
Implements IDisposable
Private disposedValue As Boolean
Private BackBuffer As System.Drawing.BufferedGraphics = Nothing
Public ReadOnly Property Graphics() As System.Drawing.Graphics
Get
Return Me.BackBuffer.Graphics
End Get
End Property
Public Sub New(ByVal canvas As System.Windows.Forms.Control)
BufferedGraphicsManager.Current.MaximumBuffer = New Size(canvas.ClientRectangle.Width + 1, canvas.ClientRectangle.Height + 1)
Me.BackBuffer = BufferedGraphicsManager.Current.Allocate(canvas.CreateGraphics, New Rectangle(0, 0, canvas.ClientRectangle.Width, canvas.ClientRectangle.Height))
End Sub
Public Sub New(ByVal canvasGraphics As Graphics, maximumBuffer As Size)
BufferedGraphicsManager.Current.MaximumBuffer = New Size(maximumBuffer.Width + 1, maximumBuffer.Height + 1)
Me.BackBuffer = BufferedGraphicsManager.Current.Allocate(canvasGraphics, New Rectangle(0, 0, maximumBuffer.Width, maximumBuffer.Height))
End Sub
Public Sub New(ByVal handle As IntPtr, maximumBuffer As Size)
BufferedGraphicsManager.Current.MaximumBuffer = New Size(maximumBuffer.Width + 1, maximumBuffer.Height + 1)
Me.BackBuffer = BufferedGraphicsManager.Current.Allocate(Graphics.FromHwnd(handle), New Rectangle(0, 0, maximumBuffer.Width, maximumBuffer.Height))
End Sub
Public Sub New(ByVal canvas As Image)
BufferedGraphicsManager.Current.MaximumBuffer = New Size(canvas.Width + 1, canvas.Height + 1)
Me.BackBuffer = BufferedGraphicsManager.Current.Allocate(Graphics.FromImage(canvas), New Rectangle(0, 0, canvas.Width, canvas.Height))
End Sub
Public Sub New(ByVal canvas As Bitmap)
BufferedGraphicsManager.Current.MaximumBuffer = New Size(canvas.Size.Width + 1, canvas.Size.Height + 1)
Me.BackBuffer = BufferedGraphicsManager.Current.Allocate(Graphics.FromImage(canvas), New Rectangle(0, 0, canvas.Width, canvas.Height))
End Sub
Public Sub Render()
If Not BackBuffer Is Nothing Then BackBuffer.Render()
End Sub
Protected Overridable Sub Dispose(disposing As Boolean)
If Not Me.disposedValue Then
If disposing Then
Me.BackBuffer = Nothing
GC.Collect()
End If
End If
Me.disposedValue = True
End Sub
Public Sub Dispose() Implements IDisposable.Dispose
Dispose(True)
GC.SuppressFinalize(Me)
End Sub
End Class
Don't forget to vote for Helpful Posts and
Mark Answers!
*This post does not reflect the opinion of Microsoft, or its employees. -
Processor 3.4 GHz Intel Core i7
Memory 16 GB 1333 MHz DDR3
I have a 27" iMac with 16GB of factory installed SDRAM and 1T harddrive. It is telling me the harddrive is full and is not functioning correctly. How can I adjust so that all files are managed on the harddrive rather than the SDRAM. (BTW - design flaw here.)
Older Macs with a single Harddrive would simply expand OS management on the drive, and I think I understand the new Fusion Drive to do just that, but how do I get this product that I spent a great deal of money on to be more than a pretty screen?I was confused by this statement
It is telling me the harddrive is full and is not functioning correctly.
OS X manages ram and when you run out, it create swapfiles to extend your ram on the HDD (Hard Disk Drive). The OS itself, takes about 16 gig of space and that too resides on the HDD. Your 16 gig of RAM is really a temporary space that holds things from the HDD so the processor can work on them. There is no design flaw between your ram and HDD. Something else is going on and there are a lot of smart people here to help you figure out what that "something else" is.
I would do three things. First I would create a backup, backups are important. Second, I would reboot into recovery and repair my HDD. Lastly while still booted in recovery I would repair permissions.
Can you capture a screen shot of the exact error you are getting? -
iPhone 4S with the latest updates 8.1.3 (12B466) installed.
When I switch back to an ongoing application, from the switcher, it reverts to its own 'homepage' rather than the stay at the state/stage I left it at.
How can I force applications to maintain the current state?
I am in the process of getting enough screenshots to demonstrate further.ios7 keeps refreshing apps after switching
solcwd -
Is it possible to use Aperture to make a new jpg from two existing ones? I'd essentially like to create a photo collage (without using existing templates) that I can then print as a single image, rather than in a book. Any advice will be most welcome! Thanks.
https://discussions.apple.com/message/15678716#15678716
(Added)
The main point is that Aperture is used to make digital negatives as good as they can be (for the uses you define), but it does not ADD date to your digital negatives, nor does it produce NEW combination files. For those tasks you need a Graphics program.
Message was edited by: Kirby Krieger -
I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button. When the button is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format. Is there a quick fix?
Hi,
You have the choice between xml or pdf, in later versions of designer you can choose with a dropdown on the email button Object palette, the "Submit As";
In earlier version you had to edit the XML Source and change the format from xml to pdf (or vice-versa);
Regards
Bruce
Maybe you are looking for
-
hi everyone. my name is joseph, i got the problem on my iphone 4 16GB BLACK. first time i did damage the battery connector and i have some store fix it for me, thaey actually sodered it and right now the iphone is not chargeable. the only thing i can
-
I take pictures of a swim team and I keyword tag each image with the swimmers name. I would like to batch rename and save in a new folder the files so they have the original filename and then the keyword name. I don't see that as an option in the m
-
Starting resolution in my monitor has changed
I changed the monitor resolution in the preference system so grafics coulb be seeing bigger on the screen. I turned to the standard resolution of 1440x900 again, and now when I start the Macbook the resolution to start still bigger (the Apple logo is
-
Why would OSX suddenly startup and then zoom in without any keystroke?
Hi all, all of a sudden following happens when I boot my mac mini. The desktop shows up normally and then after 1 second it zooms in to something like 90% (just so that the top bar vanishes). I can zoom out then and all is fine but I cannot get the m
-
Shmget failure when using a large cachesize with DB_SYSTEM_MEM flag enabled
This is probably due to me not understanding the requrements well enough. I am using bdb with given env flags (notabley DB_PRIVATE disabled, DB_SYSTEM_MEM enabled). I call set_shm_key with required args. However, this app fails at runtime with given