IMG SRC URL in iframe.

2008-12-02 Thread Graeme Knight
Hi, I would like to use an iframe on my page that contains IMG tags. I would like the IMG tag SRC to point back to the server to load up the image. What would be the best way to construct the URLs in Wicket? Many thanks for any advice, Graeme. -- View this message in context:

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
file on the server. Its this URL construction that concerns me. Many thanks for any suggestions, Graeme. Graeme Knight wrote: Hi, I would like to use an iframe on my page that contains IMG tags. I would like the IMG tag SRC to point back to the server to load up the image. What would

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
of this sort of functionality? Many thanks, Graeme. reiern70 wrote: Why not mount a resource that is servicing back images based of the CID? Best, Ernesto On Wed, Dec 3, 2008 at 2:59 PM, Graeme Knight [EMAIL PROTECTED] wrote: Oh, My use case is this: 1) Load up HTML email content

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
, Dec 3, 2008 at 2:59 PM, Graeme Knight [EMAIL PROTECTED]wrote: Oh, My use case is this: 1) Load up HTML email content. This content has CIDs which need to be resolved to URLs. 2) I will put the HTML content into the iframe using some Javascript to manipulate the innerHTML. 3) Before I do

Re: IMG SRC URL in iframe.

2008-12-03 Thread Graeme Knight
I'll try to build a small example illustrating this. Best, Ernesto Graeme Knight wrote: Hi, thank you - this is invaluable information. So basically what you are suggesting is something like: 1) Read the HTML content (this will be set on the innerHTML of the iframe). 2) Parse

Calling Javascript on AJAX load of panel.

2008-12-07 Thread Graeme Knight
Hi. I have a panel that loads different content depending on a context (i.e. clicking on a tab moves it to another view, etc). One of the views is an iframe which will have content populated by Javascript. I have something like this as a header contributor, which populates 'hello world' into

Populate IFRAME innerHTML on AJAX load of panel.

2008-12-07 Thread Graeme Knight
Hi. I have an application with links that switch panels using AJAX: : private Panel currentPanel; : ContactsListPanel manageContactsPanel = new ContactsListPanel(); currentPanel.replaceWith( manageContactsPanel ); currentPanel = manageContactsPanel; : One of my

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-07 Thread Graeme Knight
Hi. Perhaps AbstractAjaxBehavior may help - I will have a look. Anyone with any experience with this please let me know. It would be appreciated! Rgds, Graeme. Graeme Knight wrote: Hi. I have an application with links that switch panels using AJAX: : private Panel

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-07 Thread Graeme Knight
Hi. I'm making some progress by using an IPageLink to a page that might contain (if I can) the rendered content... HHmm... Cheers, Graeme. Graeme Knight wrote: Hi. I have an application with links that switch panels using AJAX: : private Panel currentPanel

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-07 Thread Graeme Knight
at 11:51 PM, Graeme Knight [EMAIL PROTECTED] wrote: Hi. I'm making some progress by using an IPageLink to a page that might contain (if I can) the rendered content... HHmm... Cheers, Graeme. Graeme Knight wrote: Hi. I have an application with links that switch panels using AJAX

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
blog.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Mon, Dec 8, 2008 at 1:07 AM, Graeme Knight [EMAIL PROTECTED] wrote: Bruno! I absolutely would love to write a wiki page

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
Message- From: Graeme Knight [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 11:48 AM To: users@wicket.apache.org Subject: Re: Populate IFRAME innerHTML on AJAX load of panel. Hey Bruno, Perhaps my ramblings with myself didn't make myself clear. I am simply wanting

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
- From: Graeme Knight [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 12:12 PM To: users@wicket.apache.org Subject: Re: Populate IFRAME innerHTML on AJAX load of panel. Hi Bruno, Right, that far I DID get. I have a Javascript file that contains the required Javascript for my

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
Hi Ernesto, No - I didn't solve this problem as yet. However, this is part of the process of parsing the HTML prior to insertion on the innerHTML. If I can get that bit working I'm going to get back to our thread on the CIDs very soon! Cheers, Graeme. Graeme Knight wrote: Hi Bruno, No I

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
to go. Is it REALLY this simple? Why does Wicket have to be so cool? Cheers, Graeme. Graeme Knight wrote: Hi Ernesto, No - I didn't solve this problem as yet. However, this is part of the process of parsing the HTML prior to insertion on the innerHTML. If I can get that bit working I'm

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
Not sure about this solution. The content of the iframe is visible then disappears... Hhm. Graeme Knight wrote: Hi guys, I'm making some progress. wicketGlobalPostCallHandler doesn't seem to be working for me, but I can do something like this after the iframe: StringBuilder

RE: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
developer rather Wicket) -Original Message- From: Graeme Knight [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 2:31 PM To: users@wicket.apache.org Subject: Re: Populate IFRAME innerHTML on AJAX load of panel. Not sure about this solution. The content of the iframe is visible

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
argument. There's also a way to execute your javascript function only after body is fully loaded. Google for that. Maybe that's your answer. cheers, Bruno (becoming a JS developer rather Wicket) -Original Message- From: Graeme Knight [mailto:[EMAIL PROTECTED] Sent: Monday, December 08

RE: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Graeme Knight
- From: Graeme Knight [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 4:02 PM To: users@wicket.apache.org Subject: Re: Populate IFRAME innerHTML on AJAX load of panel. Hi Bruno. I WILL create a Wiki page soon. How do I do this - is there a process? Rgds, Graeme. Bruno

IMG SRC URL in iframe - part 2.

2008-12-08 Thread Graeme Knight
Hi. I recently had a question which I put to the forum here: http://www.nabble.com/IMG-SRC-URL-in-iframe.-td20805408.html Generating IMG SRC to replace CIDs. I believe I have found the answer (thanks to Ernesto's help) which I would like some verification of if possible (not sure if it needs

Re: IMG SRC URL in iframe - part 2.

2008-12-09 Thread Graeme Knight
Ernesto - similar to what you did? Graeme Knight wrote: Hi. I recently had a question which I put to the forum here: http://www.nabble.com/IMG-SRC-URL-in-iframe.-td20805408.html Generating IMG SRC to replace CIDs. I believe I have found the answer (thanks to Ernesto's help) which

Re: IMG SRC URL in iframe - part 2.

2008-12-09 Thread Graeme Knight
of having a global resource use, that component to stream back your images. 2- or using a servlet. I really don't know which of these would be the best solution in terms of efficiency and use of resources... Best, Ernesto On Tue, Dec 9, 2008 at 3:20 PM, Graeme Knight [EMAIL PROTECTED

Autocomplete text concatenation

2008-12-15 Thread Graeme Knight
Hi. Couldn't find an answer but perhaps this is a common thing to want to do: Using an AutoCompleteTextField I want to allow the user to select choices as he types, then update the text area by appending the selected choice. Similar to the way a web mail application would allow a user to type

Re: Autocomplete text concatenation

2008-12-15 Thread Graeme Knight
when you edit topics of a module in wickethub). francisco On Mon, Dec 15, 2008 at 8:36 PM, Graeme Knight graeme1...@gmail.com wrote: Hi. Couldn't find an answer but perhaps this is a common thing to want to do: Using an AutoCompleteTextField I want to allow the user to select

Re: Autocomplete text concatenation

2008-12-15 Thread Graeme Knight
( AutoCompleteContactTextField.this ); } } Graeme Knight wrote: Hi there! Something like that - but I was hoping it might be easy to somehow do this with autocompletetextfield from wicket extensions - I guess there may be a little trickery to manipulating the unsubmitted

Getting the Exception from Exception Page (for logging purposes)...

2009-01-19 Thread Graeme Knight
Hi, Is it possible that after setting UnexpectedExceptionDisplay page, you can get the exception that caused this page to be fired up? Cheers, Graeme. -- View this message in context:

Re: Getting the Exception from Exception Page (for logging purposes)...

2009-01-20 Thread Graeme Knight
AWESOME! Thanks! igor.vaynberg wrote: you can override requestcycle#onruntimeexception(exception e) and log it there. -igor On Mon, Jan 19, 2009 at 6:40 PM, Graeme Knight graeme1...@gmail.com wrote: Hi, Is it possible that after setting UnexpectedExceptionDisplay page, you can

Feedback panel filtering...

2009-01-21 Thread Graeme Knight
Hi. I couldn't find the answer on the forum, but I'm sure its been done before: I have a page with a feedback panel at the top for 'serious' errors. The page contains a form. The form has input components (for example text required field). When the user hits submit I want the form component

IE7 + Vista + SP1 + AjaxFallbackLink.

2009-02-07 Thread Graeme Knight
Hi. My friend has a default installation of the above. I notice that onClick(null) is being called in AjaxFallbackLink therefore making the target null. He tells me that XMLHttp is enabled and the browser appears to work fine with other AJAX enabled sites. Any thoughts as to why this may be?

Re: IE7 + Vista + SP1 + AjaxFallbackLink.

2009-02-07 Thread Graeme Knight
I'm thinking it might be a security setting... Graeme Knight wrote: Hi. My friend has a default installation of the above. I notice that onClick(null) is being called in AjaxFallbackLink therefore making the target null. He tells me that XMLHttp is enabled and the browser appears

Re: How to execute Wicket project in Eclipse

2009-02-07 Thread Graeme Knight
I just created a Main application using Jetty and run it through that... my main server is jboss/tomcat but for development Jetty works real fine and is very easy to set up. Something like: public static void main( String[] args ) throws Exception { logger.debug( Starting web

Re: IE7 + Vista + SP1 + AjaxFallbackLink.

2009-02-07 Thread Graeme Knight
For anyone who cares - IE7 Enable Protected Mode appears to be a problem... Makes sense. Graeme Knight wrote: Hi. My friend has a default installation of the above. I notice that onClick(null) is being called in AjaxFallbackLink therefore making the target null. He tells me

Re: How does serialization work?

2008-11-03 Thread Graeme Knight
Hi. I wondered another thing - how and when are the serialized objects cleaned up? Is there a mechanism for making sure large amounts of memory or disk are not soaked up by long running sessions and lots of user interactions? Thanks again, Graeme. Graeme Knight wrote: Timo! Thanks

Re: How does serialization work?

2008-11-03 Thread Graeme Knight
. igor.vaynberg wrote: it is cleaned up when the session expires. it used to be that we only kept X last pages in the store, but now that we use disc that seems to be redundant. -igor On Mon, Nov 3, 2008 at 4:08 PM, Graeme Knight [EMAIL PROTECTED] wrote: Hi. I wondered another thing

Feedback/Error message.

2008-11-03 Thread Graeme Knight
Hi. Loving Wicket so far! I had a search and had trouble finding the answer to this one, if anyone can help: 1) I have a simple form with username/password and a submit button. 2) User enters username/password and hits submit. 3) onSubmit authenticates against the database through a load on a

Re: Feedback/Error message.

2008-11-04 Thread Graeme Knight
in the right direction! I'm assuming if I wanted a panel with an icon and an error message I just create a component with a feedback panel and an image and populate accordingly? Cheers, Graeme. igor.vaynberg wrote: On Mon, Nov 3, 2008 at 8:02 PM, Graeme Knight [EMAIL PROTECTED] wrote: 3) onSubmit

Re: Moving from Tapestry to Wicket?

2008-11-04 Thread Graeme Knight
Hey Eelco! Awesome! Thanks for your answers - they really helped. I appreciate the time. BTW, Wicket in Action is a really well written book compared to others in the genre. Thanks to you and Martijn for the hard work! It came at the right time for me and we have decided to make the move from

LoadableDetachableModels with replicated data fed in through constructors.

2008-11-06 Thread Graeme Knight
Hi. I have a number of LoadableDetachableModels that are each designed to perform a task of getting data from a database. Each model is dependent on a couple of pieces of information (1) an identifier about the current user (2) a primary key of a parent data object. I'm trying to work out the

Re: LoadableDetachableModels with replicated data fed in through constructors.

2008-11-06 Thread Graeme Knight
serialized, just 1... Thanks, Graeme. :-) Graeme Knight wrote: Hi. I have a number of LoadableDetachableModels that are each designed to perform a task of getting data from a database. Each model is dependent on a couple of pieces of information (1) an identifier about the current user (2

Re: LoadableDetachableModels with replicated data fed in through constructors.

2008-11-07 Thread Graeme Knight
://www.wickettraining.com On Thu, Nov 6, 2008 at 9:58 PM, Graeme Knight [EMAIL PROTECTED] wrote: Oh - tired! Long hard days working with spaghetti in my day job and lasagna in my night time... I realized this may be a dumb question. Doesn't an object only get serialized once no matter how many

Re: LoadableDetachableModels with replicated data fed in through constructors.

2008-11-08 Thread Graeme Knight
Timo, You are the man! Thanks! long userId = MySession.get().getUser().getId() Of course! Cheers, Graeme. Timo Rantalaiho wrote: On Thu, 06 Nov 2008, Graeme Knight wrote: perform a task of getting data from a database. Each model is dependent on a couple of pieces

Re: IDataProvider and Session related data.

2008-11-10 Thread Graeme Knight
Hey guys, Thanks! Being dumb I forgot about YourCustomSession.get().getUser().getID() for the second time this week (and yes, its only Monday) That totally answers my questions! Cheers, Graeme. Graeme Knight wrote: Hi. Just learning about IDataProvider and DataViews. I've

IDataProvider Implementation.

2008-11-11 Thread Graeme Knight
Hi. From the examples I've seen the IDataProvider implementation of the iterator method brings back (for example) a list of keys from the database. The model method uses something like a LoadableDetachableModel to populate a model for use by the consumer using the list of keys previously

Re: IDataProvider Implementation.

2008-11-11 Thread Graeme Knight
().inject(this); return memberService.getById(memberId); } } Regards, Erik. Graeme Knight wrote: Hey Jeremy, Thanks for the heads up - actually that's what I ended up doing this morning. Works like a charm! Cheers, Graeme. Jeremy Thomerson-5 wrote: In my apps, I bring

Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-15 Thread Graeme Knight
Hi. What's the best way of achieving this effect: 1) Button is pressed to start a process. 2) Updating of various panels contained within a WebMarkupContainer occurs on a 5 second period. 3) Process stops and updating of WebMarkupContainer also stops. I understand the use of

Re: Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-16 Thread Graeme Knight
Maybe I'm trying to do something silly. Is there an alternative? Graeme Knight wrote: Hi. What's the best way of achieving this effect: 1) Button is pressed to start a process. 2) Updating of various panels contained within a WebMarkupContainer occurs on a 5 second period. 3

isEnabled on AjaxSelfUpdatingTimerBehavior.

2008-11-16 Thread Graeme Knight
Hi. I have looked at removing the timer from a component when a condition is not true, but according to the forums this is not possible. Recommended is the use of isEnabled. I have the following code, but isEnabled doesn't appear to be working. I'm after a way of allowing a user to start a

Re: Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-17 Thread Graeme Knight
it because otherwise I would get an exception when using IE... I know this works, or is working for me with the snapshot of 1.4.X branch I use, but I'm not sure if its the best way to achieve this... Best, Ernesto On Sun, Nov 16, 2008 at 10:54 PM, Graeme Knight [EMAIL PROTECTED]wrote

Page Map File Sizes.

2008-11-17 Thread Graeme Knight
Hi. I hope this appropriate for this forum. I am writing a fairly heavy AJAX rich application with two pages - A login page and a work page. I was interested in progress so far regarding serialized page state, so I tracked the size of my page map file as I clicked around the application. Below

Re: Page Map File Sizes.

2008-11-17 Thread Graeme Knight
. The above scenario is pretty far fetched! Does anyone know how page cleanup occurs? Thanks, Graeme. Graeme Knight wrote: Hi. I hope this appropriate for this forum. I am writing a fairly heavy AJAX rich application with two pages - A login page and a work page. I was interested in progress

Re: Page Map File Sizes.

2008-11-17 Thread Graeme Knight
Thanks Matej! That's awesome! I will look into it! Regards, Graeme. Matej Knopp-2 wrote: Hi, the maximal file size of each pagemap file is configurable. -Matej On Tue, Nov 18, 2008 at 3:06 AM, Graeme Knight [EMAIL PROTECTED] wrote: I guess I can answer my own question: So

Re: Page Map File Sizes.

2008-11-17 Thread Graeme Knight
. -Matej On Tue, Nov 18, 2008 at 4:16 AM, Graeme Knight [EMAIL PROTECTED] wrote: Thanks Matej! That's awesome! I will look into it! Regards, Graeme. Matej Knopp-2 wrote: Hi, the maximal file size of each pagemap file is configurable. -Matej On Tue, Nov 18, 2008 at 3:06 AM, Graeme