Re: wicket-event.js returning unreadable

2007-08-06 Thread Alex Objelean

This way you end up not using compression at all? I would be interested in a
solution which would help me to use the compression without any problems. 

Maybe someone from the wicket core team would help us to understand the
difference between using IHeaderContributor and adding directly
JavascriptReference as a behavior? 

The problem can reproduced by adding 
http://sourceforge.net/project/showfiles.php?group_id=195642 Resource
Accelerate  to a simple project, include js using both methods, and see what
is the server response (using firebug or any other tool).





hillj2 wrote:
> 
> Well I have the compression filter turned off now, so that shouldn't be
> the problem.  And I'm not trying to dynamically include a js file, but
> create dynamic js which runs onload:
> 
> response.renderOnLoadJavascript("some js code");
> 
> However, your suggestion inspired me to take a second look at the API for
> IHeaderResponse and I think I've figured out a workaround.  If I use
> renderJavascript() it doesn't include the js file from wicket, then I can
> just manually write my own onload handler which utilizes the output from
> the renderJavascript() call.  I'm fairly confident that should cover me
> for almost any situation that comes up.  It may not always be the cleanest
> code, but it's better than wasting hours getting oc4j (assuming it's
> oc4j's fault) to behave.
> 
> Thanks for the suggestion, it may have indirectly solved my problem.
> 
> Joel
> 
> 
> 
> Alex Objelean wrote:
>> 
>> I've got the same problem. A quick fix for you can be give-up using
>> home-grown compression filter or instead of using IHeaderContributor to
>> include dynamic Javascript:
>> 
>> [code]
>> public void renderHead(final IHeaderResponse response) {
>> response.renderJavascriptReference(new JavascriptResourceReference(
>> WicketApplication.class, "ref/javascriptFile.js"));
>> }
>> [/code]
>> 
>> include the JS this way:
>> 
>> [code]
>> add(new JavaScriptReference("js.markupId",
>> WicketApplication.class, "ref/javascriptFile.js"));
>> [/code]
>> 
>> I do not understand the difference between these two methods of adding
>> JavascriptReference object (maybe this is related to gzip compression
>> used by wicket), but I've noticed that this makes the difference.
>> 
>> PS: I use for compression the 
>> http://sourceforge.net/project/showfiles.php?group_id=195642 Resource
>> Accelerate  project. I find it very useful. 
>> 
>> 
>> hillj2 wrote:
>>> 
>>> I'm using IHeaderContributor to include dynamic Javascript; however,
>>> wicket-event.js is returning to the browser as unreadable garbage.  I
>>> think it MAY have something to do with compression.  Our app uses a
>>> home-grown compression filter, and I also read today that wicket uses
>>> default compression too.  I tried disabling one or the other or both but
>>> this didn't work UNLESS I was using NetTool, which basically acts as a
>>> request intercept that spits out the request/response headers.  I
>>> wouldn't expect NetTool to modify the request/response at all, but for
>>> some reason if I have at least one of the compression filters disabled
>>> AND go through NetTool wicket-event.js returns fine.
>>> 
>>> I also get this in my log output when the js file fails to return
>>> properly:
>>> 
>>> DEBUG 2007-07-27 10:54:19,156 locator.ResourceStreamLocator
>>> (locateByResourceFinder:197)  - Attempting to locate resource
>>> 'org/apache/wicket/markup/html/wicket-event.js' on path [folders = [],
>>> webapppaths: []]
>>> DEBUG 2007-07-27 10:54:19,156 locator.ResourceStreamLocator
>>> (locateByClassLoader:166)  - Attempting to locate resource
>>> 'org/apache/wicket/markup/html/wicket-event.js' using classloader
>>> mcir.root:0.0.0
>>> DEBUG 2007-07-27 10:54:19,156 resource.UrlResourceStream (:92)  -
>>> cannot convert url:
>>> code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-Beta-20070606.jar!/org/apache/wicket/markup/html/wicket-event.js
>>> to file (URI scheme is not "file"), falling back to the inputstream for
>>> polling
>>> 
>>> 
>>> What makes it even more odd is I've used IHeaderContributor in another,
>>> far simpler app before and it's worked fine.
>>> 
>>> Thanks.
>>> 
>>> Joel
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a12028941
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NullPointerException when clicking on an expired wizard button

2007-08-06 Thread David Leangen
> > After completing a wizard, clicking the browser's "back" button, then
> > clicking the "previous" button of the wizard, I get the error below.

> Looks like a bug. Are you using 1.2.6?

Yes.

Unfortunately, I'm still stuck on 1.2.6+ for the foreseeable future...


Cheers,
Dave




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mountBookmarkablePage and missing parameters - exception thrown

2007-08-06 Thread Igor Vaynberg
i dont see why we should support this.
if you expect the user to mess with your urls then you should either leave
it as a query string or use indexed coding strat. imho we should fail early
- imagine looking at logs and trying to figure out wtf that url came from.
could it be a wicket encoding problem? user messed with it? etc etc.

the code to support this wouldnt be hairy at all - just remove the check and
see if param is missing and add it as ""...hmm or maybe better to add it as
null? see what i mean.

-igor

On 8/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 8/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > mount with indexed url coding strategy if you dont mind users messing
> > with your urls.
>
> I think it's kind of annoying as well. Are we (Wicket devs) really
> against supporting this, or don't we support it because the code gets
> a bit hairy?
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: mountBookmarkablePage and missing parameters - exception thrown

2007-08-06 Thread Eelco Hillenius
On 8/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> mount with indexed url coding strategy if you dont mind users messing
> with your urls.

I think it's kind of annoying as well. Are we (Wicket devs) really
against supporting this, or don't we support it because the code gets
a bit hairy?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket error on websphere app server

2007-08-06 Thread Sean Sullivan
Are you using Websphere's parent first classloading mode  or parent-last
classloading?

What jars do you have in WEB-INF/lib?


On 8/5/07, junqing chen <[EMAIL PROTECTED]> wrote:
>
> I am using wicket 1.3 beta2 in myproject ,and the application server
> is  websphere 6.0.2. when I  config wicket in websphere using filter mode,
> cant't load  class org.apche.wicket.spring.SpringWebApplicationFactory
> [07-8-3 10:25:25:202 CST] 002a WicketFilter  W   try to use
> classloarder : [EMAIL PROTECTED]
> [07-8-3 10:25:25:623 CST] 002a WebAppE   SRVE0026E: [Servlet
> 错误]-[Filter [STPMainApp]: could not be initialized]
> rg.apache.wicket.protocol.http.WebApplicationFactoryCreationException:
> Unable to create application factory of class
> org.apache.wicket.spring.SpringWebApplicationFactory
> Caused by: java.lang.ClassNotFoundException:
> org.apache.wicket.spring.SpringWebApplicationFactory
> at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
> at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:103)
> at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
> at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
> at org.apache.wicket.protocol.http.WicketFilter.getApplicationFactory(
> WicketFilter.java:580)
> ... 20 more
> in the wicketFilter  class , this code used to load  WebApplicationFactory
> :
>  // Try to find the specified factory class
> final Class factoryClass = Thread.currentThread().getContextClassLoader()
>  .loadClass(appFactoryClassName);
>   // Instantiate the factory
> return (IWebApplicationFactory)factoryClass.newInstance();
> I add a  debug log , Thread.currentThread().getContextClassLoader(), the
> classLoader is
> [EMAIL PROTECTED]
> but , if  I change web.xml to use servlet model , 
> Thread.currentThread().getContextClassLoader()
> is
> [EMAIL PROTECTED], so ,it load the
> ApplicationFaceotyClass successed. that means , in servlet Model and Filter
> Model in Websphere , the app server using different class load. but , using
> Class.forName(...) , can load the class in both model .
>
>
>
> -
> 抢注雅虎免费邮箱3.5G容量,20M附件!


Re: NullPointerException when clicking on an expired wizard button

2007-08-06 Thread Eelco Hillenius
> I was running some random tests to try to see what kind of trouble a
> typical user of my app could cause.
>
> After completing a wizard, clicking the browser's "back" button, then
> clicking the "previous" button of the wizard, I get the error below.
>
> Is there a more graceful way to handle this rather than outputting an
> error like this?
>
> Why would this cause an internal error, rather than a "session expired",
> and how can I avoid this?

Looks like a bug. Are you using 1.2.6?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Callbacks triggered by keyboard...

2007-08-06 Thread Igor Vaynberg
why would you want a serverside callback for this? you just need a
javascript handler.

-igor


On 8/6/07, Patrick Angeles <[EMAIL PROTECTED]> wrote:
>
>
> Is this possible in Wicket, say for example, as a way to scroll down a
> listing, or go left and right on a menu?
>
> Thanks in advance...
> --
> View this message in context:
> http://www.nabble.com/Callbacks-triggered-by-keyboard...-tf4227815.html#a12027815
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Callbacks triggered by keyboard...

2007-08-06 Thread Patrick Angeles

Is this possible in Wicket, say for example, as a way to scroll down a
listing, or go left and right on a menu?

Thanks in advance...
-- 
View this message in context: 
http://www.nabble.com/Callbacks-triggered-by-keyboard...-tf4227815.html#a12027815
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DojoMenu, adding same to multiple components?

2007-08-06 Thread Kirk Israel
Looking at the DojoMenu and DojoContextualMenuBehavior javadoc and
experimenting with it; is there any way to get the same DojoMenu to
appear from multiple items? (Seems like not, the "last one" wins...but
we'd prefer not to load up the page with more javascript for each item
we'd like to do context menu operations on) If not, if you attach it
to a AjaxFallbackDefaultDataTable, is there a way to do different
things based on what row item it's connected to? And is there a better
place to ask questions like this?

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding New Images to Tree Nodes

2007-08-06 Thread Igor Vaynberg
if you need additional icons you need to create your own fragment and put
that into the node instead of the tree's default text-only fragment.

-igor


On 8/6/07, Sridhar.N <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am trying to add few icons/Images to an Tree Node, I tried using
> addNewIcon() from DefaultAbstractTree but it adds the default
> folder-closed
> and folder-open icons to the node.
>
> Thanks
> Sidds.
>
> --
> View this message in context:
> http://www.nabble.com/Adding-New-Images-to-Tree-Nodes-tf4222680.html#a12012176
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: wicket-event.js returning unreadable

2007-08-06 Thread hillj2

Disabling wicket resource compression did not solve my issue, however I may
have a workaround that's faster than tinkering with oc4j's settings, which
I'm not an expert on.  See my response to Alex's suggestion for details.

Joel



hillj2 wrote:
> 
> I'm using OC4J 10.1.3.2, I believe it's 32-bit.  I've tried it with both
> FF2 and IE6.  I'm not sure about the response headers, because when I use
> my tool for extracting the headers (NetTool 4.7.0) it seems to work fine,
> so I'm not sure the headers are the same as when it doesn't work.  Unless
> there's some simple thing I can override in wicket to intercept the
> response headers (which there probably is).  Maybe that happens because
> technically NetTool becomes my webserver at that point (with oc4j being
> NetTool's webserver).  That would seem to indicate even more that it's an
> Oracle problem.
> 
> As for "junk" I mean the js file returns as random ascii, like it's binary
> data.
> 
> I think I tried disabling wicket compression once before, with no success. 
> But I'll try that again just to make sure.  I'll also see if I can tinker
> with Oracle's settings.
> 
> Thanks for the suggestions, I'll let you know how it works out.
> 
> Joel
> 
> 
> 
> Matej Knopp-2 wrote:
>> 
>> Well, oracle app server doesn't have a good reputation exactly for
>> messing the output. Try disabling the compression of wicket resources
>> completely,
>> 
>> Application.getResourceSettings.setDisableGZipCompression(true).
>> 
>> -Matej
>> 
>> On 8/3/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>>> Seems like Oracle application server, version 10.1, 32 bits?
>>>
>>> Apparently the classloader for the app server converts the
>>> getClass().getResourceAsStream("wicket-event.js")
>>> to use a "code-source:" protocol. I'm not sure, but it sounds like a
>>> security constraint in your setup.
>>>
>>> Martijn
>>>
>>> On 8/3/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>> > I doubt this is related. What app server are you using? What exactly
>>> > does it mean junk? Wha headers are set on ouput? What browser are you
>>> > using?
>>> >
>>> > -Matej
>>> >
>> 
>> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a12018236
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Handling exceptions

2007-08-06 Thread Federico Fanton
On Wed, 1 Aug 2007 15:55:26 -0700
"Eelco Hillenius" <[EMAIL PROTECTED]> wrote:

> For maximum flexibility, provide a custom request cycle and override
> onRuntimeException. Wicket 1.3 only though. For Wicket 1.2 you either
> have to do with setting an error page that is useful for you, or
> provide a custom request processor implementation (which is quite an
> ugly thing to do in 1.2, but possible).

Did that, many thanks :)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket-event.js returning unreadable

2007-08-06 Thread hillj2

Well I have the compression filter turned off now, so that shouldn't be the
problem.  And I'm not trying to dynamically include a js file, but create
dynamic js which runs onload:

response.renderOnLoadJavascript("some js code");

However, your suggestion inspired me to take a second look at the API for
IHeaderResponse and I think I've figured out a workaround.  If I use
renderJavascript() it doesn't include the js file from wicket, then I can
just manually write my own onload handler which utilizes the output from the
renderJavascript() call.  I'm fairly confident that should cover me for
almost any situation that comes up.  It may not always be the cleanest code,
but it's better than wasting hours getting oc4j (assuming it's oc4j's fault)
to behave.

Thanks for the suggestion, it may have indirectly solved my problem.

Joel



Alex Objelean wrote:
> 
> I've got the same problem. A quick fix for you can be give-up using
> home-grown compression filter or instead of using IHeaderContributor to
> include dynamic Javascript:
> 
> [code]
> public void renderHead(final IHeaderResponse response) {
> response.renderJavascriptReference(new JavascriptResourceReference(
> WicketApplication.class, "ref/javascriptFile.js"));
> }
> [/code]
> 
> include the JS this way:
> 
> [code]
> add(new JavaScriptReference("js.markupId",
> WicketApplication.class, "ref/javascriptFile.js"));
> [/code]
> 
> I do not understand the difference between these two methods of adding
> JavascriptReference object (maybe this is related to gzip compression used
> by wicket), but I've noticed that this makes the difference.
> 
> PS: I use for compression the 
> http://sourceforge.net/project/showfiles.php?group_id=195642 Resource
> Accelerate  project. I find it very useful. 
> 
> 
> hillj2 wrote:
>> 
>> I'm using IHeaderContributor to include dynamic Javascript; however,
>> wicket-event.js is returning to the browser as unreadable garbage.  I
>> think it MAY have something to do with compression.  Our app uses a
>> home-grown compression filter, and I also read today that wicket uses
>> default compression too.  I tried disabling one or the other or both but
>> this didn't work UNLESS I was using NetTool, which basically acts as a
>> request intercept that spits out the request/response headers.  I
>> wouldn't expect NetTool to modify the request/response at all, but for
>> some reason if I have at least one of the compression filters disabled
>> AND go through NetTool wicket-event.js returns fine.
>> 
>> I also get this in my log output when the js file fails to return
>> properly:
>> 
>> DEBUG 2007-07-27 10:54:19,156 locator.ResourceStreamLocator
>> (locateByResourceFinder:197)  - Attempting to locate resource
>> 'org/apache/wicket/markup/html/wicket-event.js' on path [folders = [],
>> webapppaths: []]
>> DEBUG 2007-07-27 10:54:19,156 locator.ResourceStreamLocator
>> (locateByClassLoader:166)  - Attempting to locate resource
>> 'org/apache/wicket/markup/html/wicket-event.js' using classloader
>> mcir.root:0.0.0
>> DEBUG 2007-07-27 10:54:19,156 resource.UrlResourceStream (:92)  -
>> cannot convert url:
>> code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-Beta-20070606.jar!/org/apache/wicket/markup/html/wicket-event.js
>> to file (URI scheme is not "file"), falling back to the inputstream for
>> polling
>> 
>> 
>> What makes it even more odd is I've used IHeaderContributor in another,
>> far simpler app before and it's worked fine.
>> 
>> Thanks.
>> 
>> Joel
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a12018207
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket-event.js returning unreadable

2007-08-06 Thread Alex Objelean

I've got the same problem. A quick fix for you can be give-up using
home-grown compression filter or instead of using IHeaderContributor to
include dynamic Javascript:

[code]
public void renderHead(final IHeaderResponse response) {
response.renderJavascriptReference(new JavascriptResourceReference(
WicketApplication.class, "ref/javascriptFile.js"));
}
[/code]

include the JS this way:

[code]
add(new JavaScriptReference("js.markupId",
WicketApplication.class, "ref/javascriptFile.js"));
[/code]

I do not understand the difference between these two methods of adding
JavascriptReference object (maybe this is related to gzip compression used
by wicket), but I've noticed that this makes the difference.

PS: I use for compression the 
http://sourceforge.net/project/showfiles.php?group_id=195642 Resource
Accelerate  project. I find it very useful. 


hillj2 wrote:
> 
> I'm using IHeaderContributor to include dynamic Javascript; however,
> wicket-event.js is returning to the browser as unreadable garbage.  I
> think it MAY have something to do with compression.  Our app uses a
> home-grown compression filter, and I also read today that wicket uses
> default compression too.  I tried disabling one or the other or both but
> this didn't work UNLESS I was using NetTool, which basically acts as a
> request intercept that spits out the request/response headers.  I
> wouldn't expect NetTool to modify the request/response at all, but for
> some reason if I have at least one of the compression filters disabled
> AND go through NetTool wicket-event.js returns fine.
> 
> I also get this in my log output when the js file fails to return
> properly:
> 
> DEBUG 2007-07-27 10:54:19,156 locator.ResourceStreamLocator
> (locateByResourceFinder:197)  - Attempting to locate resource
> 'org/apache/wicket/markup/html/wicket-event.js' on path [folders = [],
> webapppaths: []]
> DEBUG 2007-07-27 10:54:19,156 locator.ResourceStreamLocator
> (locateByClassLoader:166)  - Attempting to locate resource
> 'org/apache/wicket/markup/html/wicket-event.js' using classloader
> mcir.root:0.0.0
> DEBUG 2007-07-27 10:54:19,156 resource.UrlResourceStream (:92)  -
> cannot convert url:
> code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-Beta-20070606.jar!/org/apache/wicket/markup/html/wicket-event.js
> to file (URI scheme is not "file"), falling back to the inputstream for
> polling
> 
> 
> What makes it even more odd is I've used IHeaderContributor in another,
> far simpler app before and it's worked fine.
> 
> Thanks.
> 
> Joel
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a12017032
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket-event.js returning unreadable

2007-08-06 Thread hillj2

I'm using OC4J 10.1.3.2, I believe it's 32-bit.  I've tried it with both FF2
and IE6.  I'm not sure about the response headers, because when I use my
tool for extracting the headers (NetTool 4.7.0) it seems to work fine, so
I'm not sure the headers are the same as when it doesn't work.  Unless
there's some simple thing I can override in wicket to intercept the response
headers (which there probably is).  Maybe that happens because technically
NetTool becomes my webserver at that point (with oc4j being NetTool's
webserver).  That would seem to indicate even more that it's an Oracle
problem.

As for "junk" I mean the js file returns as random ascii, like it's binary
data.

I think I tried disabling wicket compression once before, with no success. 
But I'll try that again just to make sure.  I'll also see if I can tinker
with Oracle's settings.

Thanks for the suggestions, I'll let you know how it works out.

Joel



Matej Knopp-2 wrote:
> 
> Well, oracle app server doesn't have a good reputation exactly for
> messing the output. Try disabling the compression of wicket resources
> completely,
> 
> Application.getResourceSettings.setDisableGZipCompression(true).
> 
> -Matej
> 
> On 8/3/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>> Seems like Oracle application server, version 10.1, 32 bits?
>>
>> Apparently the classloader for the app server converts the
>> getClass().getResourceAsStream("wicket-event.js")
>> to use a "code-source:" protocol. I'm not sure, but it sounds like a
>> security constraint in your setup.
>>
>> Martijn
>>
>> On 8/3/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> > I doubt this is related. What app server are you using? What exactly
>> > does it mean junk? Wha headers are set on ouput? What browser are you
>> > using?
>> >
>> > -Matej
>> >
> 
> 
-- 
View this message in context: 
http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a12015983
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket-spring Javadoc

2007-08-06 Thread Evan Chooly
>
> Could somebody please point me to the location of the javadoc/api for the
> wicket.spring package?


http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-spring/1.3.0-SNAPSHOT/wicket-spring-1.3.0-SNAPSHOT-javadoc.jar


wicket-spring Javadoc

2007-08-06 Thread pokkie


Could somebody please point me to the location of the javadoc/api for the
wicket.spring package?

-- pokkie
-- 
View this message in context: 
http://www.nabble.com/wicket-spring-Javadoc-tf4223609.html#a12014729
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is this even possible...?

2007-08-06 Thread James Crosthwaite

Thanks Nathan, i'll check that out. Will give you a shout if i need a
Databinder Forums account.

Thanks again

James


n8han wrote:
> 
>> James Crosthwaite wrote:
>>> Basically i have a list of objects, currently displayed in a
>>> PageableListView, that i want the user to be able to edit.
> 
> Oh and I should probably add that the example I pointed you to maps the 
> ListView to a list contained in an object by a compound property model, 
> but you probably want to use a query to get that list so it would be new 
> PropertyListView("compenent-id", new HibernateListModel("from 
> MyObject")) {...}
> 
> AND if you want the changes to commit on submit and you don't have a 
> containing DataForm that is bound to an entity (as in this scenario I'd 
> guess), you can extend DataFormBase instead and let its onSubmit handler 
> do the txn commit. Let me know by email if you need a Databinder forums 
> account.
> 
> Nathan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-this-even-possible...--tf4213555.html#a12013385
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is this even possible...?

2007-08-06 Thread James Crosthwaite

Thanks to everyone for their replies, they are most helpful. I knew you guys
would have the answer, guess i just couldn't see the wood for the trees!

If I have any more queries I'll be sure to post back, thanks again.

James 


igor.vaynberg wrote:
> 
> this is pretty simple, but there are a few things to consider
> 
> a) the obvious: create a form and put the pageable listview into it.
> instead
> of adding labels add textfields for each row.
> 
> b) call setreuseitems(true) on the pageable listview
> 
> c) override links in the navigator with submit links
> 
> i think that should be it
> 
> -igor
> 
> 
> On 8/3/07, James Crosthwaite <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all,
>>
>> I'm relatively new to Wicket and i have a query about creating an
>> editable
>> list. My query is simply, is it even possible?
>>
>> Basically i have a list of objects, currently displayed in a
>> PageableListView, that i want the user to be able to edit. They should be
>> able to edit any of the rows and then click a button to save all changes
>> that they may have made to each row.
>>
>> I've tried using DataBinder which didn't help as i could only edit one
>> object at a time, however i cannot now work out how to achieve this or
>> even
>> if it is possible!
>>
>> If anyone has any ideas that would get me started i would be most
>> grateful!
>>
>> Many thanks in advance
>> --
>> View this message in context:
>> http://www.nabble.com/Is-this-even-possible...--tf4213555.html#a11986760
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-this-even-possible...--tf4213555.html#a12012906
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DateField with a Calendar

2007-08-06 Thread Federico Fanton
On Fri, 3 Aug 2007 09:22:01 -0700
"Igor Vaynberg" <[EMAIL PROTECTED]> wrote:

> you cant use the compound property model then, you have to write your own
> model that will do the conversion

I ended up with a custom implementation of the AttachedCompoundPropertyModel.. 
Many thanks to all who answered :)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Adding New Images to Tree Nodes

2007-08-06 Thread Sridhar.N

Hi, 

I am trying to add few icons/Images to an Tree Node, I tried using
addNewIcon() from DefaultAbstractTree but it adds the default folder-closed
and folder-open icons to the node. 

Thanks 
Sidds.

-- 
View this message in context: 
http://www.nabble.com/Adding-New-Images-to-Tree-Nodes-tf4222680.html#a12012176
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]