Re: How to delete an item from List view.

2008-02-02 Thread Igor Vaynberg
i dont think i was harsh. i simply stated that the excuse "i dont yet
know enough" is not really an excuse but a cop out, because most users
dont come back and contribute something. im not angry about it, but it
is a fact.

-igor


On Feb 2, 2008 9:05 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On Feb 2, 2008 2:19 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > well, thats the problem. you say you are not the right person because
> > you dont know. and that is the excuse a lot of users give for not
> > writing the wiki page. but guess what, after we help them here and
> > they do understand how listview works - they still dont come back and
> > write the wiki page.
>
> Don't be too harsh. There have been quite a few people who wrote for
> the WIKI before, and to be honest, I haven't always shared my
> experiences with e.g. Hibernate with the rest of the world either.
>
> How about a reconsideration of depreciating ListView?
>
> Eelco
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: A submit link that can be used with

2008-02-02 Thread Igor Vaynberg
why exactly is it a chore? you only have to write it once...

-igor


On Feb 2, 2008 8:55 PM,  <[EMAIL PROTECTED]> wrote:
> Hello:
> All the books and examples I have read to deal with situation like datatable 
> that would not accept normal Link since it is not anchored with  wicket:id>, the suggestion is to create a panel for each such a link in the 
> app when needed. while it works, it is quite tedious  to write many of these. 
> Is there already a component/extension that function the same as Link (or 
> SubmitLink) (that is, has the same call such as onSubmit, and other common 
> Link component functions)  yet can be used against  with  used with   fly so I assume this is feasibly.
> Thanks

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



Re: How to delete an item from List view.

2008-02-02 Thread Eelco Hillenius
On Feb 2, 2008 2:19 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> well, thats the problem. you say you are not the right person because
> you dont know. and that is the excuse a lot of users give for not
> writing the wiki page. but guess what, after we help them here and
> they do understand how listview works - they still dont come back and
> write the wiki page.

Don't be too harsh. There have been quite a few people who wrote for
the WIKI before, and to be honest, I haven't always shared my
experiences with e.g. Hibernate with the rest of the world either.

How about a reconsideration of depreciating ListView?

Eelco

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



A submit link that can be used with

2008-02-02 Thread dvd
Hello:
All the books and examples I have read to deal with situation like datatable 
that would not accept normal Link since it is not anchored with , the suggestion is to create a panel for each such a link in the app 
when needed. while it works, it is quite tedious  to write many of these. Is 
there already a component/extension that function the same as Link (or 
SubmitLink) (that is, has the same call such as onSubmit, and other common Link 
component functions)  yet can be used against  with 

Re: How to delete an item from List view.

2008-02-02 Thread Igor Vaynberg
well, thats the problem. you say you are not the right person because
you dont know. and that is the excuse a lot of users give for not
writing the wiki page. but guess what, after we help them here and
they do understand how listview works - they still dont come back and
write the wiki page.

so there you go, welcome to open source...

-igor


On Feb 2, 2008 12:44 PM, Alan Romaniuc <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I know that will be sound a little stupid, but ListView causes  a lot
> of problems for newbies (including reuse startegy). Maybe a better or
> more "in depth" wiki entry would avoid these questions on this mail
> list? Just a suggestion (once i am facing the same probles, i would
> not be the right person to do that :( )
>
>
>
> On Feb 2, 2008 12:01 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > read the notice part of the javadoc...
> >
> > -igor
> >
> >
> >
> > On Feb 1, 2008 5:49 PM, pnerkar <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi igor,
> > >
> > > Ya I read this from one of ur doc.
> > > http://www.wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/refreshing/ReuseIfModelsEqualStrategy.html
> > > I have implemented equals/hashcode in Vehicle object.
> > >
> > > -pnerkar
> > >
> > >
> > >
> > > igor.vaynberg wrote:
> > > >
> > > > for the strategy to work properly you have to implement
> > > > equals/hashcode on the model, looks like you are just doing:
> > > >
> > > > new Model( (Vehicle) ((List)getModelObject()).get(i))
> > > >
> > > > Model does not implement equals/hashcode
> > > >
> > > > -igor
> > > >
> > > >
> > > > On Feb 1, 2008 4:03 PM, pnerkar <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >> Ya I tried refreshingview with ReuseIfModelsEqualStrategy,
> > > >> But the data entered on page get cleared.
> > > >>
> > > >> My new code is -
> > > >>
> > > >>
> > > >> final VehiclesList vehicles = new VehiclesList("vehicles", new
> > > >> PropertyModel((RatingRequestAuto)getModelObject(),"vehicles"));
> > > >> vehicles.setOutputMarkupId(true);
> > > >> vehicles.setItemReuseStrategy(new 
> > > >> ReuseIfModelsEqualStrategy());
> > > >> add(vehicles);
> > > >>
> > > >> private static class VehiclesList extends RefreshingView {
> > > >>
> > > >>
> > > >> public VehiclesList (String id, PropertyModel model) {
> > > >> super (id,model);
> > > >> }
> > > >>
> > > >>   /**
> > > >>  * Return an iterator over models for items in the view
> > > >>  */
> > > >> protected Iterator getItemModels()
> > > >> {
> > > >> List models = new ArrayList();
> > > >> for(int
> > > >> i=0;i<((List)getModelObject()).size();i++){
> > > >> models.add(new Model( (Vehicle)
> > > >> ((List)getModelObject()).get(i)));
> > > >> }
> > > >> return models.iterator();
> > > >> }
> > > >>
> > > >> protected void populateItem(final ListItem item)
> > > >>  {
> > > >>
> > > >> item.add(new TextField("vehicle.modelText", new
> > > >> PropertyModel(vehicle, "model")).setRequired(true));
> > > >> TextField registrationnumber = new
> > > >> TextField("vehicle.registrationnumber", new PropertyModel(vehicle,
> > > >> "registrationNumber"));
> > > >> TextField engineNumber = new
> > > >> TextField("vehicle.enginenumber", new
> > > >> PropertyModel(vehicle, "engineNumber"));
> > > >>
> > > >> final int index = item.getIndex();
> > > >> Button remVehBtn = new
> > > >> Button("btn_removeVeh", new ResourceModel(
> > > >> "removevehicle" )) {
> > > >> public void onSubmit() 
> > > >> {
> > > >>
> > > >> item.getParent().remove(item);
> > > >> }
> > > >> });
> > > >> }
> > > >> }
> > > >> }
> > > >>
> > > >> forgive me this may not be a cleaner way... I dont have more than a 
> > > >> month
> > > >> exp of wicket.
> > > >>
> > > >> -pnerkar
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> igor.vaynberg wrote:
> > > >> >
> > > >> > dont use a listview, use a refreshingview and provide an itemreuse
> > > >> > strategy.
> > > >> >
> > > >> > -igor
> > > >> >
> > > >> >
> > > >> > On Feb 1, 2008 1:51 PM, pnerkar <[EMAIL PROTECTED]> wrote:
> > > >> >>
> > > >> >> Hi Igor,
> > > >> >>
> > > >> >> Finally I'm able to find out the exact issue.
> > > >> >> suppose There are 3 items in the list-
> > > >> >> wicket will assign id as 0, 1 & 2. to those items.
> > > >> >> So When we say  item.getparent().remove(item) to item with id=1,
> > > >> >> them It'll remove that item from list bu

Re: Short Design Question

2008-02-02 Thread Edvin Syse

oliverw skrev:

Oh an by the way. The constructor for my summary page looks like this at the
moment:

public RegistrationResultPage(final int user_id)
{
super(null);

// model setup
IModel model = new CompoundPropertyModel(new LoadableDetachableModel()
{
public Object load()
{
return userAccountService.getUser(user_id);
}
});
setModel(model);

add(new Label("info", new PropertyModel(getModel(), "email")));
}

What's the recommended way to format the output for label "info" before it
get's rendered. For example. The property getter for the "email" property
returns [EMAIL PROTECTED] but I would like to apply a format string like "%s
foo bar" to the value resulting in "[EMAIL PROTECTED] foo bar" as the label
text.


You could do:

add(new Label("info", new Model() {
public Object getObject() {
return ((User)getModelObject()).getEmail() + " foo bar";
}   
});

Also, depending on your need, you could pass in the User in the page 
constructor instead of the user_id, and setModel(user) directly.

-- Edvin

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



Re: How to delete an item from List view.

2008-02-02 Thread Alan Romaniuc
Hi all,

I know that will be sound a little stupid, but ListView causes  a lot
of problems for newbies (including reuse startegy). Maybe a better or
more "in depth" wiki entry would avoid these questions on this mail
list? Just a suggestion (once i am facing the same probles, i would
not be the right person to do that :( )


On Feb 2, 2008 12:01 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> read the notice part of the javadoc...
>
> -igor
>
>
>
> On Feb 1, 2008 5:49 PM, pnerkar <[EMAIL PROTECTED]> wrote:
> >
> > Hi igor,
> >
> > Ya I read this from one of ur doc.
> > http://www.wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/refreshing/ReuseIfModelsEqualStrategy.html
> > I have implemented equals/hashcode in Vehicle object.
> >
> > -pnerkar
> >
> >
> >
> > igor.vaynberg wrote:
> > >
> > > for the strategy to work properly you have to implement
> > > equals/hashcode on the model, looks like you are just doing:
> > >
> > > new Model( (Vehicle) ((List)getModelObject()).get(i))
> > >
> > > Model does not implement equals/hashcode
> > >
> > > -igor
> > >
> > >
> > > On Feb 1, 2008 4:03 PM, pnerkar <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Ya I tried refreshingview with ReuseIfModelsEqualStrategy,
> > >> But the data entered on page get cleared.
> > >>
> > >> My new code is -
> > >>
> > >>
> > >> final VehiclesList vehicles = new VehiclesList("vehicles", new
> > >> PropertyModel((RatingRequestAuto)getModelObject(),"vehicles"));
> > >> vehicles.setOutputMarkupId(true);
> > >> vehicles.setItemReuseStrategy(new ReuseIfModelsEqualStrategy());
> > >> add(vehicles);
> > >>
> > >> private static class VehiclesList extends RefreshingView {
> > >>
> > >>
> > >> public VehiclesList (String id, PropertyModel model) {
> > >> super (id,model);
> > >> }
> > >>
> > >>   /**
> > >>  * Return an iterator over models for items in the view
> > >>  */
> > >> protected Iterator getItemModels()
> > >> {
> > >> List models = new ArrayList();
> > >> for(int
> > >> i=0;i<((List)getModelObject()).size();i++){
> > >> models.add(new Model( (Vehicle)
> > >> ((List)getModelObject()).get(i)));
> > >> }
> > >> return models.iterator();
> > >> }
> > >>
> > >> protected void populateItem(final ListItem item)
> > >>  {
> > >>
> > >> item.add(new TextField("vehicle.modelText", new
> > >> PropertyModel(vehicle, "model")).setRequired(true));
> > >> TextField registrationnumber = new
> > >> TextField("vehicle.registrationnumber", new PropertyModel(vehicle,
> > >> "registrationNumber"));
> > >> TextField engineNumber = new
> > >> TextField("vehicle.enginenumber", new
> > >> PropertyModel(vehicle, "engineNumber"));
> > >>
> > >> final int index = item.getIndex();
> > >> Button remVehBtn = new
> > >> Button("btn_removeVeh", new ResourceModel(
> > >> "removevehicle" )) {
> > >> public void onSubmit() {
> > >>
> > >> item.getParent().remove(item);
> > >> }
> > >> });
> > >> }
> > >> }
> > >> }
> > >>
> > >> forgive me this may not be a cleaner way... I dont have more than a month
> > >> exp of wicket.
> > >>
> > >> -pnerkar
> > >>
> > >>
> > >>
> > >>
> > >> igor.vaynberg wrote:
> > >> >
> > >> > dont use a listview, use a refreshingview and provide an itemreuse
> > >> > strategy.
> > >> >
> > >> > -igor
> > >> >
> > >> >
> > >> > On Feb 1, 2008 1:51 PM, pnerkar <[EMAIL PROTECTED]> wrote:
> > >> >>
> > >> >> Hi Igor,
> > >> >>
> > >> >> Finally I'm able to find out the exact issue.
> > >> >> suppose There are 3 items in the list-
> > >> >> wicket will assign id as 0, 1 & 2. to those items.
> > >> >> So When we say  item.getparent().remove(item) to item with id=1,
> > >> >> them It'll remove that item from list but item with id=2 will not
> > >> remain
> > >> >> as
> > >> >> it is..
> > >> >> i.e.  Now list will have 2 items one with id=0 & id=2.
> > >> >> So when we display list, it'll clears the fields for item with id=1.
> > >> >> so we need to update id field of item object... But think there is no
> > >> way
> > >> >> to
> > >> >> do that...
> > >> >>
> > >> >> is there...???
> > >> >>
> > >> >> -Pnerkar
> > >> >>
> > >> >>
> > >> >>
> > >> >>
> > >> >> igor.vaynberg wrote:
> > >> >> >
> > >> >> > try this:
> > >> >> >
> > >> >> > onpopulate (final listitem item) {
> > >> >> >add(new link("remove") { onclick() { 
> > >> >> > item.getparent().remove(item); }}
> > >> >> > }
> > >> 

Re: Short Design Question

2008-02-02 Thread oliverw

Oh an by the way. The constructor for my summary page looks like this at the
moment:

public RegistrationResultPage(final int user_id)
{
super(null);

// model setup
IModel model = new CompoundPropertyModel(new LoadableDetachableModel()
{
public Object load()
{
return userAccountService.getUser(user_id);
}
});
setModel(model);

add(new Label("info", new PropertyModel(getModel(), "email")));
}

What's the recommended way to format the output for label "info" before it
get's rendered. For example. The property getter for the "email" property
returns [EMAIL PROTECTED] but I would like to apply a format string like "%s
foo bar" to the value resulting in "[EMAIL PROTECTED] foo bar" as the label
text.

Edvin Syse wrote:
> 
>>>   Can't you just proceed this way:
>>> setResponsePage(new SummaryPage(userdId));
>>>
>>> i.e. pass the id as a parameter to the summary page constructor ?
>>>
>>> Regards
>>>
>> 
>> This works - kind of. Because even though the response page is mounted, I
>> not see a pretty url in the browser.
> 
> You can mount the page with HybridUrlCodingStrategy to get a pretty URL
> even after redirecting:
> 
> mount(new HybridUrlCodingStrategy("/summary", SummaryPage.class));
> 
> -- Edvin
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Short-Design-Question-tp15243739p15246920.html
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: Short Design Question

2008-02-02 Thread Edvin Syse

Thanks Edwin! That did the trick. Just from the looks it appears as if
HybridUrlCodingStrategy would be the preferable mount strategy in general.


Absolutely :) Even if it adds the version as .version to the url, it is fully bookmarkable. If the current session doesn't include that 
version, it will "downgrade" with a redirect automatically.


-- Edvin

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



Re: Short Design Question

2008-02-02 Thread oliverw

Thanks Edwin! That did the trick. Just from the looks it appears as if
HybridUrlCodingStrategy would be the preferable mount strategy in general.


Edvin Syse wrote:
> 
>>>   Can't you just proceed this way:
>>> setResponsePage(new SummaryPage(userdId));
>>>
>>> i.e. pass the id as a parameter to the summary page constructor ?
>>>
>>> Regards
>>>
>> 
>> This works - kind of. Because even though the response page is mounted, I
>> not see a pretty url in the browser.
> 
> You can mount the page with HybridUrlCodingStrategy to get a pretty URL
> even after redirecting:
> 
> mount(new HybridUrlCodingStrategy("/summary", SummaryPage.class));
> 
> -- Edvin
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Short-Design-Question-tp15243739p15246739.html
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: Workaround for "AjaxEditableLabel yields java.lang.IllegalAccessError (WICKET-1239)"?

2008-02-02 Thread Johan Compagner
it works now
all the poms where changed to 1.3 instead of 1.3.0 so the shell script still
copied the wrong one.

can i delete all the 1.3.0 dirs??

johan



On Feb 2, 2008 3:36 PM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:

> i have reopened the issue, as the exception is still thrown (at least on
> wicketstuff.org) :/
>
> see http://wicketstuff.org/wicket13/ajax/editable-label and try it with
> any
> of the two labels "fox"
> and "dog".
>
>  gerolf
>
> On Jan 31, 2008 7:45 PM, Per Ejeklint <[EMAIL PROTECTED]> wrote:
>
> >
> > Nice! Thank you Gerolf.
> >
> > /Per
> >
> >
> > Gerolf Seitz wrote:
> > >
> > > i'm sorry this one slipped through.
> > > i commited Per's fix.
> > >
> > > Edvin, can you try with latest trunk to verify it's fixed?
> > >
> > >   gerolf
> > >
> > > On Jan 31, 2008 8:53 AM, Edvin Syse <[EMAIL PROTECTED]> wrote:
> > >
> > >> Advanced Technology(R) skrev:
> > >> > Check Per solution :
> > >> >
> > >>
> >
> http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14687720.html
> > >>
> > >> Thanks! Worked like a charm. For some reason this didn't make it into
> > >> 1.3.1, though..
> > >>
> > >> -- Edvin
> > >>
> > >> -
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >
> > >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Workaround-for-%22AjaxEditableLabel-yields-java.lang.IllegalAccessError-%28WICKET-1239%29%22--tp15193816p15211776.html
> > 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: Short Design Question

2008-02-02 Thread Edvin Syse

  Can't you just proceed this way:
setResponsePage(new SummaryPage(userdId));

i.e. pass the id as a parameter to the summary page constructor ?

Regards



This works - kind of. Because even though the response page is mounted, I
not see a pretty url in the browser.


You can mount the page with HybridUrlCodingStrategy to get a pretty URL even 
after redirecting:

mount(new HybridUrlCodingStrategy("/summary", SummaryPage.class));

-- Edvin


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



Re: Short Design Question

2008-02-02 Thread oliverw


djo mos wrote:
> 
> 2008/2/2, oliverw <[EMAIL PROTECTED]>:
>>
>>
>> Short question: Let's say we have a user registration page. Upon success
>> a
>> result page is displayed using setResponsePage showing some kind of
>> registration summary . Is there a way to avoid passing the database
>> user_id
>> of the newly created user to the result page via PageParameters and thus
>> giving away internal information - the user_id in this case? Or is this
>> just
>> something we have to live with?
>>
>>
> Hi,
>   Can't you just proceed this way:
> setResponsePage(new SummaryPage(userdId));
> 
> i.e. pass the id as a parameter to the summary page constructor ?
> 
> Regards
> 
> 

This works - kind of. Because even though the response page is mounted, I
not see a pretty url in the browser.
-- 
View this message in context: 
http://www.nabble.com/Short-Design-Question-tp15243739p15246050.html
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: TreeTable icons and customization

2008-02-02 Thread Matej Knopp
First of all, the images are not hardcoded. There are multiple ways of
specifying the images, you simply have to subclass certain methods. If
you want to specify images in property files it's easy to implement.
If you want to specify  images through CSS, use your own
LabelIconPanel that does that.

-Matej

On Feb 2, 2008 5:50 PM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote:
> Great, that works around the issue of reference the image.
>
> But... what about the idea of no hard-code the images?
> Maybe I can use a properties file... or just put it special wicket: tags in
> my markup.
>
> Thanks!
> Juan
>
>
> On Jan 31, 2008 4:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> > you can override LabelIconPanel#newImageComponent and create a
> > WebMarkupContainer instead of an ImageContainer.
> > on the WebMarkupContainer override onComponentTag and set the src
> > attribute to where your image is.
> >
> > -Matej
> >
> >
> > On Jan 31, 2008 7:03 PM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote:
> > > Hi all
> > > i've found several threads about this subject, but none of them really
> > > helped me with the issue i'm dealing rigth now...
> > > I want to customize icons for the TreeTable, but i need to put images in
> > a
> > > specific path and i would prefer not to hard code image names.
> > > So, question is:
> > >
> > > How can i reference an image with an specific path, _different_ from
> > > container-class package?
> > > My class is com.foo.LabelIconPanel and my image is in
> > > "/images/icons/bla.gif"
> > >
> > > I've looking in ResourceReference (the object used by LinkIconPanel) but
> > i
> > > cant find a way to do this.
> > >
> > > About hard-code or not hard-code, i already solve a similar problem
> > putting
> > > special/custom wicket tags in html. And, for example, to set alternate
> > > styles to different rows ina  table, i wrote
> > >
> > > 
> > >> > wicket:alternateStyle="rowAlternateStyle">
> > > ...
> > >   
> > > 
> > >
> > > Then, in MyTable.java, i access the attributes with
> > > getMarkupAttributes().get("wicket:rowStyle")
> > >
> > > What do you think?
> > >
> > > Thanks in advance!
> > > Juan
> > >
> >
> >
> >
> > --
> > Resizable and reorderable grid components.
> > http://www.inmethod.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

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



Re: Workaround for "AjaxEditableLabel yields java.lang.IllegalAccessError (WICKET-1239)"?

2008-02-02 Thread Edvin Syse
I have checked and double-checked. This IS resolved in trunk now. I created a quickstart-project and put the code from the example in 
HomePage.java and HomePage.html. Then I verified that the error was there with 1.3.0. Then I synced wicket against trunk and did a mvn clean 
install in my wicket-folder. Then I changed the pom for the example-project to wicket-version 1.3-SNAPSHOT and did mvn eclipse:eclipse. 
Without any other modification, it then works.


This is on Linux with jdk1.6.0_04.

-- Edvin

Gerolf Seitz skrev:

i have reopened the issue, as the exception is still thrown (at least on
wicketstuff.org) :/

see http://wicketstuff.org/wicket13/ajax/editable-label and try it with any
of the two labels "fox"
and "dog".

  gerolf

On Jan 31, 2008 7:45 PM, Per Ejeklint <[EMAIL PROTECTED]> wrote:


Nice! Thank you Gerolf.

/Per


Gerolf Seitz wrote:

i'm sorry this one slipped through.
i commited Per's fix.

Edvin, can you try with latest trunk to verify it's fixed?

  gerolf

On Jan 31, 2008 8:53 AM, Edvin Syse <[EMAIL PROTECTED]> wrote:


Advanced Technology(R) skrev:

Check Per solution :


http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14687720.html

Thanks! Worked like a charm. For some reason this didn't make it into
1.3.1, though..

-- Edvin

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





--
View this message in context:
http://www.nabble.com/Workaround-for-%22AjaxEditableLabel-yields-java.lang.IllegalAccessError-%28WICKET-1239%29%22--tp15193816p15211776.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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







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



Re: TreeTable icons and customization

2008-02-02 Thread Juan Gabriel Arias
Great, that works around the issue of reference the image.

But... what about the idea of no hard-code the images?
Maybe I can use a properties file... or just put it special wicket: tags in
my markup.

Thanks!
Juan

On Jan 31, 2008 4:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:

> you can override LabelIconPanel#newImageComponent and create a
> WebMarkupContainer instead of an ImageContainer.
> on the WebMarkupContainer override onComponentTag and set the src
> attribute to where your image is.
>
> -Matej
>
>
> On Jan 31, 2008 7:03 PM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote:
> > Hi all
> > i've found several threads about this subject, but none of them really
> > helped me with the issue i'm dealing rigth now...
> > I want to customize icons for the TreeTable, but i need to put images in
> a
> > specific path and i would prefer not to hard code image names.
> > So, question is:
> >
> > How can i reference an image with an specific path, _different_ from
> > container-class package?
> > My class is com.foo.LabelIconPanel and my image is in
> > "/images/icons/bla.gif"
> >
> > I've looking in ResourceReference (the object used by LinkIconPanel) but
> i
> > cant find a way to do this.
> >
> > About hard-code or not hard-code, i already solve a similar problem
> putting
> > special/custom wicket tags in html. And, for example, to set alternate
> > styles to different rows ina  table, i wrote
> >
> > 
> >> wicket:alternateStyle="rowAlternateStyle">
> > ...
> >   
> > 
> >
> > Then, in MyTable.java, i access the attributes with
> > getMarkupAttributes().get("wicket:rowStyle")
> >
> > What do you think?
> >
> > Thanks in advance!
> > Juan
> >
>
>
>
> --
> Resizable and reorderable grid components.
> http://www.inmethod.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Short Design Question

2008-02-02 Thread Juan Gabriel Arias
Or just pass the User object to the constructor.

Juan


Re: Short Design Question

2008-02-02 Thread djo mos
2008/2/2, oliverw <[EMAIL PROTECTED]>:
>
>
> Short question: Let's say we have a user registration page. Upon success a
> result page is displayed using setResponsePage showing some kind of
> registration summary . Is there a way to avoid passing the database
> user_id
> of the newly created user to the result page via PageParameters and thus
> giving away internal information - the user_id in this case? Or is this
> just
> something we have to live with?
>
>
Hi,
  Can't you just proceed this way:
setResponsePage(new SummaryPage(userdId));

i.e. pass the id as a parameter to the summary page constructor ?

Regards


Short Design Question

2008-02-02 Thread oliverw

Short question: Let's say we have a user registration page. Upon success a
result page is displayed using setResponsePage showing some kind of
registration summary . Is there a way to avoid passing the database user_id
of the newly created user to the result page via PageParameters and thus
giving away internal information - the user_id in this case? Or is this just
something we have to live with?


-- 
View this message in context: 
http://www.nabble.com/Short-Design-Question-tp15243739p15243739.html
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: Workaround for "AjaxEditableLabel yields java.lang.IllegalAccessError (WICKET-1239)"?

2008-02-02 Thread Gerolf Seitz
i have reopened the issue, as the exception is still thrown (at least on
wicketstuff.org) :/

see http://wicketstuff.org/wicket13/ajax/editable-label and try it with any
of the two labels "fox"
and "dog".

  gerolf

On Jan 31, 2008 7:45 PM, Per Ejeklint <[EMAIL PROTECTED]> wrote:

>
> Nice! Thank you Gerolf.
>
> /Per
>
>
> Gerolf Seitz wrote:
> >
> > i'm sorry this one slipped through.
> > i commited Per's fix.
> >
> > Edvin, can you try with latest trunk to verify it's fixed?
> >
> >   gerolf
> >
> > On Jan 31, 2008 8:53 AM, Edvin Syse <[EMAIL PROTECTED]> wrote:
> >
> >> Advanced Technology(R) skrev:
> >> > Check Per solution :
> >> >
> >>
> http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14687720.html
> >>
> >> Thanks! Worked like a charm. For some reason this didn't make it into
> >> 1.3.1, though..
> >>
> >> -- Edvin
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Workaround-for-%22AjaxEditableLabel-yields-java.lang.IllegalAccessError-%28WICKET-1239%29%22--tp15193816p15211776.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Changing the style of a ModalWindow

2008-02-02 Thread dtoffe

Hi !!

I want to increase the font size of the caption title in a modal window.
I've created a subclass of ModalWindow and added this to the start of the
constructor:

String captionStyle = "  "
"  "
"  ";
 add(new StringHeaderContributor(captionStyle));

hoping that this style would override the same style defined in the
modal window style sheet. But upon inspection of the source code in the
browser window, I see this style doesn't appear to be generated.
What I'm missing here ??

Cheers,

Daniel

-- 
View this message in context: 
http://www.nabble.com/Changing-the-style-of-a-ModalWindow-tp15243298p15243298.html
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: Challenge: write something really sleek for Facebook?

2008-02-02 Thread tieTYT

Hi Eelco,

I wanted to give you an update of what i learned about facebook apps:
there's 2 types: FBML and IFRAME

fbml apps are actually translated from your webapp and facebook renders it
with their server (me thinks).
the IFRAME app is just literally your app rendered from your server but
displayed on theirs

if you want to do it as IFRAME, that wiki post i made is pretty much all you
need...  that and you need to understand how to use the FaceBookRestClient
that you put in the session.  As I prefer the IFRAME approach, that's what
i'm going to use.


Eelco Hillenius wrote:
> 
> Hi,
> 
> Daniel Kaplan wrote a WIKI page[1] that describes how to set up Wicket
> for Facebook. Someone posted a link to that on DZone[2], and that in
> turn prompted Dave from Alfresco to write an alternative to it that
> shows it can be done much shorter[3]. I know that several people
> posted the idea before of writing a simple integration framework for
> Facebook/ Wicket, but so far no-one actually contributed code (besides
> this WIKI).
> 
> How about it? Is that blog posting a challenge enough to come up with
> a simple framework that makes writing Facebook apps with Wicket short
> and elegant? I can imagine we'd need a component (set) and/ or
> specialized models for parsing external REST requests. But maybe I'm
> just talking crap here. Any takers? :-)
> 
> Eelco
> 
> 
> [1] http://cwiki.apache.org/confluence/display/WICKET/Facebook+Integration
> [2] http://www.dzone.com/links/rss/apache_wicket_facebook_integration.html
> [3] http://blogs.alfresco.com/davidc/?p=12
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Challenge%3A-write-something-really-sleek-for-Facebook--tp15220672p15241533.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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