How to Ajax-validate CheckBoxMultipleChoice?

2010-06-25 Thread David Chang
Hi, I am unable to addres this need and have to ask the group.

I am using the ajax approach to validate each field on a form. See the 
following:





If the above field gets focus and loses the focus without any value in it, 
there will be a red box around the input field. If it gets a value and loses 
its mouse focus, the red box disappears. All this happens without the user 
submitting the form.

The backend code is similar to the following:

...
inputComponent.add(new AjaxFormComponentUpdatingBehavior("onblur") {

@Override
protected void onUpdate(AjaxRequestTarget target) {
if (target != null) {
//add border and feedback panel here
}
}

@Override
protected void onError(AjaxRequestTarget target, RuntimeException e) {
if (target != null) {
//add border and feedback panel here
}
}); 


This approach works well for TextFields. 

Now I have a list of check boxes (implemented via CheckBoxMultipleChoice). At 
least one of them must be checked. The above Ajax approach is NOT working.

Can anybody there help me out on this?

All the best.


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread Edward Zarecor
Hmm, I took a working example that replaces a panel using an AJAX link
and altered the HTML to match what you have and, hey presto, after
clicking the link I have two versions of the panel content.  Reload
and I have one again.

I don't have the code in front of me, but I'll take a look again
tomorrow at what precisely is happening.

You should look at the HTML after the AJAX link has been clicked to
try to determine what is happening to the DOM.

In any event, I think "table fragment" as panel is a bad idea.

Ed.

On Fri, Jun 25, 2010 at 5:36 PM, jammyjohn  wrote:
>
> Ed,
>
> Thanks for your reply. I already tried this. But still the problem exists.
> :(
>
> setResponsePage(getPage(this)) seems to be the work around for this issue.
> But the problem is, the other inputfields that have values on this page are
> lost when the panel is re-rendered.
>
> I am not sure how to solve this issue.
>
> Thanks
> J.
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Panel-re-rendered-twice-when-the-data-is-fetched-tp2268924p2268991.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread jammyjohn

Ed,

Thanks for your reply. I already tried this. But still the problem exists.
:(

setResponsePage(getPage(this)) seems to be the work around for this issue.
But the problem is, the other inputfields that have values on this page are
lost when the panel is re-rendered.

I am not sure how to solve this issue. 

Thanks
J.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-re-rendered-twice-when-the-data-is-fetched-tp2268924p2268991.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread Edward Zarecor
I believe the cause -- and I've reproduced locally -- is this HTML:

 

Don't dump content into the 

Try changing this to







And see if it fixes the issue.

Ed.



On Fri, Jun 25, 2010 at 4:37 PM, jammyjohn  wrote:
>
> Hi,
>
> The page loads address panel with couple of text fields . When the search is
> made for a particular address id, the address panel is rendered twice (one
> panel with the data, the second panel without the data). Not sure  how to
> avoid re-rendering of panel twice,
>
> setResponsePage(getPage()) can be a solution, but I dont want the whole page
> to be refreshed as I am using 4 panels in my page.
>
> The code is as below. Not sure if there is a problem in the way the markup
> is structured.  Appreciate your help in this regard.
>
> /AddressPanel.html***/
>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
> http://www.w3.org/1999/xhtml";
> xmlns:wicket="http://wicket.sourceforge.net/"; xml:lang="en"     lang="en">
>        
>                
>                                        
>                                                Adr1:
>                                                 type='text' wicket:id="address" size='30'
> maxlength='45'/>
>                                        
>                                        
>                                                Adr2:
>                                                 type='text' wicket:id="address2" size='30'
> maxlength='45'/>
>                                        
>                 
>        
> 
>
> /AddressPanel.java***/
>
> public class AddressPanel extends Panel {
>
>        public AddressPanel(String id, IModel model) {
>            super(id);
>
>           setDefaultModel(new CompoundPropertyModel(model));
>            add(new RequiredTextField("address"));
>            add(new
> TextField("address2").setConvertEmptyInputStringToNull(false));
>    }
>
> }
>
> /* java file that instantiates the panel */
>
> final  Panel shipAddressPanel = new AddressPanel("shipperAddressPanel", new
> Model(address.getShipAddress()));
>                shipAddressPanel.setOutputMarkupId(true);
>                mawbForm.add(shipAddressPanel);
>
>                add(mawbForm);
>
> final TextField shipIdTf =  new TextField("shipperId", new
> PropertyModel(dtomodel, "shipperId"));
>                shipIdTf.setOutputMarkupId(true);
>                mawbForm.add(shipIdTf);
>
>
>                shipIdTf.add(new AjaxFormComponentUpdatingBehavior("onBlur"){
>                        private static final long serialVersionUID = 1L;
>                       �...@override
>                        protected void onUpdate(AjaxRequestTarget target) {
>                                Shipper shipper=
> shipDao.loadShipAddress(Long.parseLong(shipIdTf.getDefaultModelObjectAsString()))
>                                Address address = new Address();
>                                address.setShipAddress(shipper);
>                                
> shipAddressPanel.setDefaultModelObject(address.getShipAddress());
>                                target.addComponent(shipAddressPanel);
>                        }
>
>        });
>
>
>
>
>
>
> /* the template that calls the panel ***/
>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>
> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> 
> 
>
> 
> 
> 
>                                                         border='1' cellpadding='1' cellspacing=''>
>                                                
>                                                
>                                                                 class='instrLabelColor' colspan="2"
> align='center'>SHIP From:
>                                                                         type='text' wicket:id="shipperId" />
>                                                                 
>
>                                                         
>                                                         wicket:id="shipperAddressPanel">
>                                                
>                                                
>                                        
>                                        
>
> 
> 
> 
>
> Thanks
> J
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Panel-re-rendered-twice-when-the-data-is-pulled-in-tp2268924p2268924.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: urlFor not performing an accurate url

2010-06-25 Thread Fernando Wermus
thanks

On Fri, Jun 25, 2010 at 5:09 PM, Jeremy Thomerson  wrote:

> your page is probably mounted with the default mounting strategy, which
> uses
> the "seo-friendly" folder style parameters.  instead, you should mount that
> page with the QueryStringUrlCodingStrategy
>
> On Fri, Jun 25, 2010 at 3:07 PM, Fernando Wermus
> wrote:
>
> > Hi all,
> >I need a url similar to the following example
> >
> > www.example/test?url=map/myMap.swf
> >
> > But urlFor constructs the followng
> >
> > www.example/text/url/map/myMap.swf/
> >
> > The last slash makes that the swf will not be correctly added.
> >
> > Why RequestCycle.get().urlFor is not doing what I do expect?
> >
> > Instead, I had to construct it by hand.
> >
> > thanks in advance
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread jammyjohn

Hi,

The page loads address panel with couple of text fields . When the search is
made for a particular address id, the address panel is rendered twice (one
panel with the data, the second panel without the data). Not sure  how to
avoid re-rendering of panel twice, 

setResponsePage(getPage()) can be a solution, but I dont want the whole page
to be refreshed as I am using 4 panels in my page.

The code is as below. Not sure if there is a problem in the way the markup
is structured.  Appreciate your help in this regard. 

/AddressPanel.html***/

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.sourceforge.net/"; xml:lang="en" lang="en">  
  
  

Adr1:  


   

Adr2:   


   
  



/AddressPanel.java***/

public class AddressPanel extends Panel {   

public AddressPanel(String id, IModel model) {
super(id); 
  
   setDefaultModel(new CompoundPropertyModel(model));   
  
add(new RequiredTextField("address"));
add(new
TextField("address2").setConvertEmptyInputStringToNull(false));   
}   

}

/* java file that instantiates the panel */

final  Panel shipAddressPanel = new AddressPanel("shipperAddressPanel", new
Model(address.getShipAddress()));
shipAddressPanel.setOutputMarkupId(true);   
mawbForm.add(shipAddressPanel);   

add(mawbForm);

final TextField shipIdTf =  new TextField("shipperId", new
PropertyModel(dtomodel, "shipperId"));  
shipIdTf.setOutputMarkupId(true);
mawbForm.add(shipIdTf);


shipIdTf.add(new AjaxFormComponentUpdatingBehavior("onBlur"){   

private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
Shipper shipper=
shipDao.loadShipAddress(Long.parseLong(shipIdTf.getDefaultModelObjectAsString()))
   
Address address = new Address();
address.setShipAddress(shipper);

shipAddressPanel.setDefaultModelObject(address.getShipAddress());
target.addComponent(shipAddressPanel);
}

}); 






/* the template that calls the panel ***/

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">



 

  



SHIP From:   
  

   
 
 
   


  


   






Thanks
J
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-re-rendered-twice-when-the-data-is-pulled-in-tp2268924p2268924.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: urlFor not performing an accurate url

2010-06-25 Thread Jeremy Thomerson
your page is probably mounted with the default mounting strategy, which uses
the "seo-friendly" folder style parameters.  instead, you should mount that
page with the QueryStringUrlCodingStrategy

On Fri, Jun 25, 2010 at 3:07 PM, Fernando Wermus
wrote:

> Hi all,
>I need a url similar to the following example
>
> www.example/test?url=map/myMap.swf
>
> But urlFor constructs the followng
>
> www.example/text/url/map/myMap.swf/
>
> The last slash makes that the swf will not be correctly added.
>
> Why RequestCycle.get().urlFor is not doing what I do expect?
>
> Instead, I had to construct it by hand.
>
> thanks in advance
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>



-- 
Jeremy Thomerson
http://www.wickettraining.com


urlFor not performing an accurate url

2010-06-25 Thread Fernando Wermus
Hi all,
I need a url similar to the following example

www.example/test?url=map/myMap.swf

But urlFor constructs the followng

www.example/text/url/map/myMap.swf/

The last slash makes that the swf will not be correctly added.

Why RequestCycle.get().urlFor is not doing what I do expect?

Instead, I had to construct it by hand.

thanks in advance

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Get data from main application

2010-06-25 Thread d2marcelo

That's correct. 

APP 1 will call APP2 and pass the string  like "ABCDEFG"  in the url.. 
I was just thinking if this is the best way to do it. 

Thanks 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268873.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get data from main application

2010-06-25 Thread Jeremy Thomerson
yes

On Fri, Jun 25, 2010 at 2:43 PM, d2marcelo  wrote:

>
> So , I assume I don't have to do anything on the application class.
> But on the home page class, I would get PageParameters passed in the
> constructor like so?
>
>
> public class MyApp extends WebPage {
>
>public MyApp (PageParameters params) {
>
>
> }
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268869.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Get data from main application

2010-06-25 Thread d2marcelo

So , I assume I don't have to do anything on the application class. 
But on the home page class, I would get PageParameters passed in the
constructor like so?


public class MyApp extends WebPage {

public MyApp (PageParameters params) {


}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268869.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get data from main application

2010-06-25 Thread Jeremy Thomerson
Depends on what your String is.  Do you mean that you need to redirect a
user from app one to app two, and you could pass this string in the URL (as
a query parameter)?  If s, just create a wicket bookmarkable page and use
the PageParameters to get the string.

Jeremy

On Fri, Jun 25, 2010 at 2:38 PM, d2marcelo  wrote:

>
> I'm open to suggestions on this.  What is a simple way to send the string .
> This is coming from a webapp written in a diff java framework. jsf
>
> Possibility a simple get to the url with the string or use RESTfull
> service.
> Trying to be away from database option.  I'm not familiar with jmx.
>
> Anyway, any suggestion would be good to get me started.
>
> Thanks,
>
> Marcelo
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268865.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Get data from main application

2010-06-25 Thread d2marcelo

I'm open to suggestions on this.  What is a simple way to send the string . 
This is coming from a webapp written in a diff java framework. jsf

Possibility a simple get to the url with the string or use RESTfull service.
Trying to be away from database option.  I'm not familiar with jmx. 

Anyway, any suggestion would be good to get me started.

Thanks,

Marcelo
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268865.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: About the Mail on this page mainly to Igor

2010-06-25 Thread Markus

Gmail has a good enough spam-filter, so don't worry

On 6/24/10 3:45 AM, midikem wrote:

Hi can u please put the mail invisible. When you search on google on your
mail you get all the posts from this forum, that you have posted, and i dont
want my mail to be vissible to other people, due to spam and other stuffs.
   


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get data from main application

2010-06-25 Thread Edward Zarecor
Do you mean that App1 will redirect to something like
http://wickethost/WicketApp/homepage?myArgument=theValue

If so, see:

http://wicketbyexample.com/api/wicket/1.4.6/org/apache/wicket/PageParameters.html

If not, please clarify the use case.

Ed.


On Fri, Jun 25, 2010 at 3:17 PM, d2marcelo  wrote:
>
> Hello,
>
> I'm building a webapp in wicket which will be a redirect from other webapp.
> The other webapp will send me a string ,  what is the best way to get this
> string from the wicket application? and how to do it?
>
> Thanks a lot,
>
> Marcelo
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268839.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get data from main application

2010-06-25 Thread Jeremy Thomerson
How are you sending the string?  As a query string parameter, a JMS message,
something in the database?

On Fri, Jun 25, 2010 at 2:17 PM, d2marcelo  wrote:

>
> Hello,
>
> I'm building a webapp in wicket which will be a redirect from other webapp.
> The other webapp will send me a string ,  what is the best way to get this
> string from the wicket application? and how to do it?
>
> Thanks a lot,
>
> Marcelo
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268839.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Get data from main application

2010-06-25 Thread d2marcelo

Hello, 

I'm building a webapp in wicket which will be a redirect from other webapp.
The other webapp will send me a string ,  what is the best way to get this
string from the wicket application? and how to do it?

Thanks a lot,

Marcelo
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268839.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Markup Inheritance example with Ajax?

2010-06-25 Thread Jeremy Thomerson
If you want to do this, you are basically using the single-page paradigm
where your content is always a panel.  Basically you just create a single
page, and then all of your content goes into panels instead of pages with
markup inheritance.  Then swap the panel in your link and add it to the ajax
response.  You can make these bookmarkable through PageParameters.

Jeremy Thomerson

On Fri, Jun 25, 2010 at 12:29 PM, heapifyman  wrote:

>
> Hello all,
>
> I would like to extend the Markup Inheritance example
> (http://wicket.apache.org/examplemarkupinheritance.html) by replacing
> the content part of the page (i.e. the wicket:child) using Ajax.
>
> I tried to replace the BookmarkablePageLink on the BasePage with an
> AjaxLink but this does not seem to work because one cannot add a WebPage
> (e.g. Page1 in the example) to the target in the onClick() method.
>
> Is there a way in Wicket to have a BasePage with header, content and
> footer and replace the content by using Ajax?
>
> I'd appreciate if anyone could point me to some example or documentation.
>
> Best regards,
> philip
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Wicket: On RadioChoice component, invoke form submit, what am I missing

2010-06-25 Thread Brown, Berlin [GCG-PFS]
There are some components in wicket that seem to be associated with a
form, but I can't get them to actually submit the form.
 
Or at least, I can't get them to submit the form, if I have a hierarchy
of FORM -> PANEL -> COMPONENT/RADIOCHOICE
 
For example, I can create a "submitlink" or button and those components
submit:
 
return new SubmitLink(id, form) {   
   @Override
   public void onSubmit() {
this.setResponsePage(pageClass);
   }
  };
 
That works above.
 
I want to be able to perform a submit on a radio choice, on change. E.g.
 
new OnChangeHandler() { 
 
 @Override
 public void onChange(final Object sel) {  
  // On submission, submit back to form
  setResponsePage(Page.class);
 } 
 
// MY CONTAINER IS NOT A FORM BUT A CHILD OF A FORM (E.g. FORM -> PANEL
-> RADIOCHOICE
 
public RadioChoice addRadioGroup(final WebMarkupContainer container,
final Object modelObject, 
   final String groupName, final String propFieldName, final String []
optionsArr, final OnChangeHandler handler) {
 
  final RadioChoice radioGroupYesNo = new RadioChoice(groupName, new
PropertyModel(modelObject, propFieldName), Arrays.asList(optionsArr)) {
 
 @Override
   public boolean wantOnSelectionChangedNotifications() {   
return (handler != null); /* When the handler is not null, enable on
change */
   }
   @Override
   public void onSelectionChanged(Object newSel) {
if (handler != null) { 
 handler.onChange(newSel);
} else {
 super.onSelectionChanged(newSel);
}
   }   
  };
  container.add(radioGroupYesNo);
  return radioGroupYesNo;
 }
 
With the code shown above, the page refreshes, but I want to submit the
form and do a page refresh.
 
I don't see where I could associate the form with the RadioChoice?

Does RadioChoice need to imlement IFormSubmittingComponent?
 
Berlin Brown


Re: Submitting a component value on a ajax call of a different component

2010-06-25 Thread jammyjohn

Thank you so much for your reply. I tried using getCallbackScript on my
dropdown box. But it is never been called and also the fetch value on the
wicket side returns null for the dropdown box.
Not sure where I am doing wrong. Please suggest.
 
My code is as below..
/DropdownChoice**/
final DropDownChoice typeOption=new DropDownChoice("type",
list){  
private static final long serialVersionUID = 1L;
@Override
protected CharSequence getDefaultChoice(Object 
selected) {
return "--";
}
 protected boolean 
wantOnSelectionChangedNotifications() {
return true;
}
};  


/*adding to the form and setting outputmarkupid to true
form.add(typeOption.setRequired(true).setOutputMarkupId(true)); 

/adding AbstractDefaultAjaxBehavior to the above dropdownchoice /

typeOption.add(new AbstractDefaultAjaxBehavior() {  

private static final long serialVersionUID = 1L;
@Override
protected void respond(AjaxRequestTarget target) {
// TODO Auto-generated method stub
System.out.println("this is not getting 
printed");

}
@Override
protected CharSequence getCallbackScript(boolean 
onlyTargetActivePage)
 {
System.out.println("not getting printed");
 return generateCallbackScript("wicketAjaxGet('" +
getCallbackUrl(onlyTargetActivePage) +

"&mawbTypeDataOptionValue='+$Wicket.$("+mawbTypeDataOption.getMarkupId()+").value"
+
 ");");
 }


});



 final TextField nameTf = new TextField("name");   
   
form.add(nameTf.setConvertEmptyInputStringToNull(false).setOutputMarkupId(true));

//**trying to access ddc value from onBlur of the
textfield**/
 nameTf.add(new AjaxEventBehavior("onBlur") {
private static final long serialVersionUID = 1L;
@Override
protected void onEvent(AjaxRequestTarget target) {
nameTf.setModelObject("");  


Request request = 
RequestCycle.get().getRequest();
 String ddcValue = request.getParameter 
("mawbTypeDataOptionValue");
 System.out.println("this always prints null 
"++ddcValue);  

nameTf .modelChanged();

   target.addComponent(nameTf);

  target.addComponent(feedbackPanel);
}

});
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Submitting-a-component-value-on-a-ajax-call-of-a-different-component-tp2264940p2268754.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Markup Inheritance example with Ajax?

2010-06-25 Thread Edward Zarecor
What you are trying to accomplish doesn't require markup inheritance.

You can use a panel and replace it with an Ajax link.

That panel could be nested within wicket children participating in
markup inheritance, but that's another matter.  The panel should be
the component added to the AjaxRequestTarget.

Ed.


On Fri, Jun 25, 2010 at 1:29 PM, heapifyman  wrote:
>
> Hello all,
>
> I would like to extend the Markup Inheritance example
> (http://wicket.apache.org/examplemarkupinheritance.html) by replacing
> the content part of the page (i.e. the wicket:child) using Ajax.
>
> I tried to replace the BookmarkablePageLink on the BasePage with an
> AjaxLink but this does not seem to work because one cannot add a WebPage
> (e.g. Page1 in the example) to the target in the onClick() method.
>
> Is there a way in Wicket to have a BasePage with header, content and
> footer and replace the content by using Ajax?
>
> I'd appreciate if anyone could point me to some example or documentation.
>
> Best regards,
> philip
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Markup Inheritance example with Ajax?

2010-06-25 Thread heapifyman

Hello all,

I would like to extend the Markup Inheritance example
(http://wicket.apache.org/examplemarkupinheritance.html) by replacing
the content part of the page (i.e. the wicket:child) using Ajax.

I tried to replace the BookmarkablePageLink on the BasePage with an
AjaxLink but this does not seem to work because one cannot add a WebPage
(e.g. Page1 in the example) to the target in the onClick() method.

Is there a way in Wicket to have a BasePage with header, content and
footer and replace the content by using Ajax?

I'd appreciate if anyone could point me to some example or documentation.

Best regards,
philip



signature.asc
Description: OpenPGP digital signature


Re: Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Thomas Kappler

On 06/25/10 09:17, Alessandro Bottoni wrote:

Hi All,
I'm new to Wicket and I'm studying it using "Wicket in Action". As you
surely know, this book is based on Wicket 1.3, that does NOT use
generics, while the current version is 1.4 and DOES use them (as will do
the next ones).

Put aside this page:

https://cwiki.apache.org/WICKET/migrating-to-wicket-14.html#MigratingtoWicket1.4-Modelchanges

I was unable to find any other documentation and/or example  regarding
the use of Java Generics with Wicket 1.4. (Actually, there is also this
historically-interesting report of the discussion about generics:
https://cwiki.apache.org/WICKET/generics.html).


Why do you see the need for documentation specific to generics in 
Wicket? Once you understand Java generics, their usage in Wicket is 
straightforward. Consult the Javadocs, and even that is often 
unnecessary---for an IModel, T must be the type of the model object, 
for instance.


Please ask some more specific questions if you have any.

Cheers,
Thomas

--
---
  Thomas Kapplerthomas.kapp...@isb-sib.ch
  Swiss Institute of Bioinformatics Tel: +41 22 379 51 89
  CMU, rue Michel Servet 1
  1211 Geneve 4
  Switzerland  http://www.uniprot.org
---

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread david_

If that is the issue, it can be solved by overriding the method that sets
the id? But is it possible?

2010/6/25 Rodolfo Hansen [via Apache Wicket] <
ml-node+2268555-1340689353-232...@n4.nabble.com
>

> Yes, it may be something with the wicket session.
> Can you send me a quickstart with the issue??
>
> On Thu, 2010-06-24 at 23:22 -0700, david_ wrote:
>
> > Yes indeed.
> > Is it possible that wicket is updating for example 2 Component's of 2
> > different users with the same Component identifiers?
> > Maybe that's why Wicket is unable to process the action for a link one of
>
> > the 2 Components.
> >
> >
> > 2010/6/25 Rodolfo Hansen [via Apache Wicket] <
> > [hidden email] 
> > <[hidden
> email] >
> > >
> >
> > > You mean to say the error is sporadic?
> > >
> > > On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:
> > >
> > > > Hi
> > > >
> > > > I have a Listener object with a Map in it containing
> > > > org.apache.wicket.Component objects that need to be updated every
> time
> > > the
> > > > onChange(); method is called. For example caused by another user's
> > > actions.
> > > > This works perfectly with wicketstuff-push.
> > > >
> > > > The org.apache.wicket.Component objects that need to be updated, have
>
> > > > org.apache.wicket.ajax.markup.html.AjaxLink objects.
> > > > Sometimes if I click on the one of the links, I get a
> > > WicketRuntimeException
> > > > telling me that the Link is not found on the Page.
> > > >
> > > > Any suggestions?
> > >
> > >
> > >
> > >
> > > --
> > >  View message @
> > >
> http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2267816.html
> > > To start a new topic under Wicket - User, email
> > > [hidden email] 
> > > <[hidden
> email] >
> > > To unsubscribe from Wicket - User, click here<
> http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2>.
>
> > >
> > >
> > >
> >
>
>
>
>
> --
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2268555.html
> To start a new topic under Wicket - User, email
> ml-node+1842947-1066186228-232...@n4.nabble.com
> To unsubscribe from Wicket - User, click 
> here.
>
>
>

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2268581.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread Rodolfo Hansen
Yes, it may be something with the wicket session.
Can you send me a quickstart with the issue??

On Thu, 2010-06-24 at 23:22 -0700, david_ wrote:

> Yes indeed.
> Is it possible that wicket is updating for example 2 Component's of 2
> different users with the same Component identifiers?
> Maybe that's why Wicket is unable to process the action for a link one of
> the 2 Components.
> 
> 
> 2010/6/25 Rodolfo Hansen [via Apache Wicket] <
> ml-node+2267816-1187617804-232...@n4.nabble.com
> >
> 
> > You mean to say the error is sporadic?
> >
> > On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:
> >
> > > Hi
> > >
> > > I have a Listener object with a Map in it containing
> > > org.apache.wicket.Component objects that need to be updated every time
> > the
> > > onChange(); method is called. For example caused by another user's
> > actions.
> > > This works perfectly with wicketstuff-push.
> > >
> > > The org.apache.wicket.Component objects that need to be updated, have
> > > org.apache.wicket.ajax.markup.html.AjaxLink objects.
> > > Sometimes if I click on the one of the links, I get a
> > WicketRuntimeException
> > > telling me that the Link is not found on the Page.
> > >
> > > Any suggestions?
> >
> >
> >
> >
> > --
> >  View message @
> > http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2267816.html
> > To start a new topic under Wicket - User, email
> > ml-node+1842947-1066186228-232...@n4.nabble.com
> > To unsubscribe from Wicket - User, click 
> > here.
> >
> >
> >
> 




Re: tomcat restart error

2010-06-25 Thread Johan Compagner
Is that tomcat 7??

But t seems that we dont clean up our page saving thread.
That sounds like a leak to me. Application.shutdown or something should clean 
up that 

- Original message -
> Anybody seen this before?
> 
> 
> SEVERE: Error filterStart
> Jun 24, 2010 3:24:06 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [] startup failed due to previous errors
> Jun 24, 2010 3:24:06 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads SEVERE: A web application appears to have started
> a thread named [PageSavingThread-wicket.PRManager] but has failed to
> stop it. This is very likely to create a memory leak.
> 
> Douglas Ferguson
> 
> mobile: 512.293.7279
> office/fax: 512.462.0408
> skype: stillrecording
> aim:     DaAmericanRuse
> 
> -
> 
> http://www.linkedin.com/in/douglasferguson
> http://www.myspace.com/douglasferguson
> http://www.douglasferguson.us/
> http://www.distilleryrecords.com/
> http://www.stillrecording.com/
> 
> Join my mailing list: distilleryrecords-subscr...@yahoogroups.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
Looks like if you use Spring 3.x, you can do it.  You have to use the
"value" of the @Transactional annotation to figure out which tx
manager to use.

On Fri, Jun 25, 2010 at 9:58 AM, James Carman
 wrote:
> These discussions might be of interest to you:
>
> https://jira.springsource.org/browse/SPR-3955
>
> http://forum.springsource.org/showthread.php?t=27754
>
>
>
>
> On Fri, Jun 25, 2010 at 9:34 AM, pieter claassen
>  wrote:
>> Yes, I reload the objects using my DAOs but, I have 2 MySQL databases on the
>> backend and so far have not been using @Transactional. This might be the
>> problem.
>>
>> Now I just have to figure out to configure   > transaction-manager="txManager" /> for more than one transaction manager and
>> make sure the different DOAs use the right txManager.
>>
>> Regards,
>> Pieter
>>
>> On Fri, Jun 25, 2010 at 3:30 PM, nino martinez wael <
>> nino.martinez.w...@gmail.com> wrote:
>>
>>> yeah and grabbig from the dao each time right?
>>>
>>>
>>> 2010/6/25 pieter claassen 
>>>
 Nino,

 No, in this case, I created an inline IModel and overrode the getObject()
 method.

 Pieter


 On Fri, Jun 25, 2010 at 2:59 PM, nino martinez wael <
 nino.martinez.w...@gmail.com> wrote:

> are you using a loadable detachable model or?
>
> 2010/6/25 pieter claassen 
>
> I find that when I delete objects from my ListView, my model object for
>> the
>> ListView still contains a reference to the object. When the view tries
>> to
>> render, the object is already removed from the database and I get a null
>> response on my hibernate load(). I use opensessioninview and when I
>> check my
>> logs, the delete statement comes way after the view was rendered.
>>
>> It seems that ListView renders the new view before the transaction is
>> closed
>> (but even then, the delete should be visible to later sql in the same
>> transaction).
>>
>> Any ideas?
>> Regards,
>> Pieter
>>
>>
>>
>> Log:
>> 
>> Hibernate: delete from ABSTRACTDATASET where ID=?
>>
>>
>> ListView:
>> ===
>>        ListView documents = new ListView("documents", new IModel() {
>>
>>            public Object getObject() {
>>                return getDocumentList();
>>            }
>>
>> 
>>
>
>


 --
 Pieter Claassen
 musmato.com

>>>
>>>
>>
>>
>> --
>> Pieter Claassen
>> musmato.com
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
These discussions might be of interest to you:

https://jira.springsource.org/browse/SPR-3955

http://forum.springsource.org/showthread.php?t=27754




On Fri, Jun 25, 2010 at 9:34 AM, pieter claassen
 wrote:
> Yes, I reload the objects using my DAOs but, I have 2 MySQL databases on the
> backend and so far have not been using @Transactional. This might be the
> problem.
>
> Now I just have to figure out to configure    transaction-manager="txManager" /> for more than one transaction manager and
> make sure the different DOAs use the right txManager.
>
> Regards,
> Pieter
>
> On Fri, Jun 25, 2010 at 3:30 PM, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> yeah and grabbig from the dao each time right?
>>
>>
>> 2010/6/25 pieter claassen 
>>
>>> Nino,
>>>
>>> No, in this case, I created an inline IModel and overrode the getObject()
>>> method.
>>>
>>> Pieter
>>>
>>>
>>> On Fri, Jun 25, 2010 at 2:59 PM, nino martinez wael <
>>> nino.martinez.w...@gmail.com> wrote:
>>>
 are you using a loadable detachable model or?

 2010/6/25 pieter claassen 

 I find that when I delete objects from my ListView, my model object for
> the
> ListView still contains a reference to the object. When the view tries
> to
> render, the object is already removed from the database and I get a null
> response on my hibernate load(). I use opensessioninview and when I
> check my
> logs, the delete statement comes way after the view was rendered.
>
> It seems that ListView renders the new view before the transaction is
> closed
> (but even then, the delete should be visible to later sql in the same
> transaction).
>
> Any ideas?
> Regards,
> Pieter
>
>
>
> Log:
> 
> Hibernate: delete from ABSTRACTDATASET where ID=?
>
>
> ListView:
> ===
>        ListView documents = new ListView("documents", new IModel() {
>
>            public Object getObject() {
>                return getDocumentList();
>            }
>
> 
>


>>>
>>>
>>> --
>>> Pieter Claassen
>>> musmato.com
>>>
>>
>>
>
>
> --
> Pieter Claassen
> musmato.com
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
Yes, I reload the objects using my DAOs but, I have 2 MySQL databases on the
backend and so far have not been using @Transactional. This might be the
problem.

Now I just have to figure out to configurefor more than one transaction manager and
make sure the different DOAs use the right txManager.

Regards,
Pieter

On Fri, Jun 25, 2010 at 3:30 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> yeah and grabbig from the dao each time right?
>
>
> 2010/6/25 pieter claassen 
>
>> Nino,
>>
>> No, in this case, I created an inline IModel and overrode the getObject()
>> method.
>>
>> Pieter
>>
>>
>> On Fri, Jun 25, 2010 at 2:59 PM, nino martinez wael <
>> nino.martinez.w...@gmail.com> wrote:
>>
>>> are you using a loadable detachable model or?
>>>
>>> 2010/6/25 pieter claassen 
>>>
>>> I find that when I delete objects from my ListView, my model object for
 the
 ListView still contains a reference to the object. When the view tries
 to
 render, the object is already removed from the database and I get a null
 response on my hibernate load(). I use opensessioninview and when I
 check my
 logs, the delete statement comes way after the view was rendered.

 It seems that ListView renders the new view before the transaction is
 closed
 (but even then, the delete should be visible to later sql in the same
 transaction).

 Any ideas?
 Regards,
 Pieter



 Log:
 
 Hibernate: delete from ABSTRACTDATASET where ID=?


 ListView:
 ===
ListView documents = new ListView("documents", new IModel() {

public Object getObject() {
return getDocumentList();
}

 

>>>
>>>
>>
>>
>> --
>> Pieter Claassen
>> musmato.com
>>
>
>


-- 
Pieter Claassen
musmato.com


Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread nino martinez wael
are you using a loadable detachable model or?

2010/6/25 pieter claassen 

> I find that when I delete objects from my ListView, my model object for the
> ListView still contains a reference to the object. When the view tries to
> render, the object is already removed from the database and I get a null
> response on my hibernate load(). I use opensessioninview and when I check
> my
> logs, the delete statement comes way after the view was rendered.
>
> It seems that ListView renders the new view before the transaction is
> closed
> (but even then, the delete should be visible to later sql in the same
> transaction).
>
> Any ideas?
> Regards,
> Pieter
>
>
>
> Log:
> 
> Hibernate: delete from ABSTRACTDATASET where ID=?
>
>
> ListView:
> ===
>ListView documents = new ListView("documents", new IModel() {
>
>public Object getObject() {
>return getDocumentList();
>}
>
> 
>


Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
No, my DAO's inherit from HibernateDaoSupport and I just go with the
defaults.

Regards,
Pieter

On Fri, Jun 25, 2010 at 2:22 PM, James Carman wrote:

> How are you managing transactions?
>
> On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen
>  wrote:
> > I find that when I delete objects from my ListView, my model object for
> the
> > ListView still contains a reference to the object. When the view tries to
> > render, the object is already removed from the database and I get a null
> > response on my hibernate load(). I use opensessioninview and when I check
> my
> > logs, the delete statement comes way after the view was rendered.
> >
> > It seems that ListView renders the new view before the transaction is
> closed
> > (but even then, the delete should be visible to later sql in the same
> > transaction).
> >
> > Any ideas?
> > Regards,
> > Pieter
> >
> >
> >
> > Log:
> > 
> > Hibernate: delete from ABSTRACTDATASET where ID=?
> >
> >
> > ListView:
> > ===
> >ListView documents = new ListView("documents", new IModel() {
> >
> >public Object getObject() {
> >return getDocumentList();
> >}
> >
> > 
> >
>



-- 
Pieter Claassen
musmato.com


Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
How are you managing transactions?

On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen
 wrote:
> I find that when I delete objects from my ListView, my model object for the
> ListView still contains a reference to the object. When the view tries to
> render, the object is already removed from the database and I get a null
> response on my hibernate load(). I use opensessioninview and when I check my
> logs, the delete statement comes way after the view was rendered.
>
> It seems that ListView renders the new view before the transaction is closed
> (but even then, the delete should be visible to later sql in the same
> transaction).
>
> Any ideas?
> Regards,
> Pieter
>
>
>
> Log:
> 
> Hibernate: delete from ABSTRACTDATASET where ID=?
>
>
> ListView:
> ===
>        ListView documents = new ListView("documents", new IModel() {
>
>            public Object getObject() {
>                return getDocumentList();
>            }
>
> 
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Programmatically set CSS 'id' in an tag

2010-06-25 Thread Chris Colman
Arh, ok, that explains it.

>-Original Message-
>From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no]
>Sent: Friday, 25 June 2010 8:55 PM
>To: users@wicket.apache.org
>Subject: SV: Programmatically set CSS 'id' in an  tag
>
>> For some reason the first method worked fine but the second method
>> didn't.
>
>setMarkupId() needs to be combined with setOutputMarkupId(true);
>
>- Tor Iver
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Alessandro Bottoni
Hi All,
I'm new to Wicket and I'm studying it with "Wicket in Action". As you
surely know, this book is based on Wicket 1.3, that does NOT use
generics, while the current version is 1.4 and DOES use them (as will do
the next ones).

Put aside this page:

https://cwiki.apache.org/WICKET/migrating-to-wicket-14.html#MigratingtoWicket1.4-Modelchanges

I was unable to find any other documentation and/or example  regarding
the use of Java Generics with Wicket 1.4. (Actually, there is also this
historically-interesting report of the discussion about generics:
https://cwiki.apache.org/WICKET/generics.html).

Does anybody know of any other documentation or example I can/should use
as a reference while studying this part of Wicket 1.4?

Thanks in advance.
-- 

Alessandro Bottoni
Website: http://www.alessandrobottoni.it/

"All is mystery; but he is a slave who will not struggle to penetrate
the dark veil."
 -- Benjamin Disraeli

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
I find that when I delete objects from my ListView, my model object for the
ListView still contains a reference to the object. When the view tries to
render, the object is already removed from the database and I get a null
response on my hibernate load(). I use opensessioninview and when I check my
logs, the delete statement comes way after the view was rendered.

It seems that ListView renders the new view before the transaction is closed
(but even then, the delete should be visible to later sql in the same
transaction).

Any ideas?
Regards,
Pieter



Log:

Hibernate: delete from ABSTRACTDATASET where ID=?


ListView:
===
ListView documents = new ListView("documents", new IModel() {

public Object getObject() {
return getDocumentList();
}




SV: Programmatically set CSS 'id' in an tag

2010-06-25 Thread Wilhelmsen Tor Iver
> For some reason the first method worked fine but the second method
> didn't.

setMarkupId() needs to be combined with setOutputMarkupId(true);

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Programmatically set CSS 'id' in an tag

2010-06-25 Thread Chris Colman
>If the link elements are wicket component then you could do:
>
>  add(new SimpleAttributeModifier("id", "menu1"));
>or
>  setMarkupId("menu1");

For some reason the first method worked fine but the second method
didn't.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Session.replaceSession() behavior

2010-06-25 Thread Matthias Keller

Hi Doug

As described in the javadoc, the replaceSession() only replaces the 
(underlying) HTTP Session to help against session fixation attacks.
What is your goal exactly? If the user logs in and still has an earlier 
session, that that one will be destroyed?
In that case consider to use  session.invalidateNow()  to immediately 
destroy the (old) session and then create a new one.
Notice: When using invalidateNow() and creating a new one, the static 
method  Session.get() will still get you the previous (destroyed) 
session while being in the same call...


Matt

On 2010-06-24 20:13, Doug Leeper wrote:

I was under the impression that when I call Session.replaceSession() a new 
session would be created.

I am seeing a new HttpServletSession being created but not my wicket application session. 
 I have placed a System.out.println( "new AppSession()..." ) in the constructor 
and I am not seeing that.

Can anyone confirm this behavior as well?  Is this a bug?  Is there a work 
around?

I am using Wicket 1.4.9

BTW...my use case is someone goes to the LoginPage and logs in, the previous 
session will be cleared.

Multi-window support is also on (however...changing this doesn't affect the 
outcome)

Thanks
- Doug
   





smime.p7s
Description: S/MIME Cryptographic Signature


Howto get TagTester for childs of components in ajax response?

2010-06-25 Thread Per Newgro
Hi *,

I would like to test the markup of my (Ajax-)updated component. Until now i 
simply used String.contains(String). But this is very fragile on markup 
manipulation in my code.

So i would like to get the tags inside the ajax-response CData section and 
simply extract everything (analogous to TagTester / WicketTester).

is someone out there providing already a solution for this? Maybe i missed a 
blog or something.

In addition here a little example of what i try to achieve
>From code below i would like to test if attribute style on component 
>"brdPage_frmArrangementType_lvArrangementTypes_1_description" is set to 
>"border: 2px solid red;"








  


Cheers
Per
-- 
GMX.ch - Schweizer FreeMail-Dienst mit über 800.000 Mitgliedern
E-Mail & mehr! Kostenlos: http://portal.gmx.net/de/go/chfreemail

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Alessandro Bottoni
Hi All,
I'm new to Wicket and I'm studying it using "Wicket in Action". As you
surely know, this book is based on Wicket 1.3, that does NOT use
generics, while the current version is 1.4 and DOES use them (as will do
the next ones).

Put aside this page:

https://cwiki.apache.org/WICKET/migrating-to-wicket-14.html#MigratingtoWicket1.4-Modelchanges

I was unable to find any other documentation and/or example  regarding
the use of Java Generics with Wicket 1.4. (Actually, there is also this
historically-interesting report of the discussion about generics:
https://cwiki.apache.org/WICKET/generics.html).

Does anybody know of any other documentation or example I can/should use
as a reference while studying this part of Wicket 1.4?

Thanks in advance.

-- 

Alessandro Bottoni
Website: http://www.alessandrobottoni.it/

"All is mystery; but he is a slave who will not struggle to penetrate
the dark veil."
 -- Benjamin Disraeli


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org