Re: [Wicket-user] How to display different input type in one column

2007-08-07 Thread Igor Vaynberg
you need to create two fragments - one with markup for a textfield, and one
with markup for a dropdown. then add the appropriate fragment.

-igor


On 8/7/07, rtow <[EMAIL PROTECTED]> wrote:
>
>
> I have a column that needs to display either dropDownChoice or text.
>
> dataViewPanel.html
>   
> 
>
> 
> 
> 
>  
>   
> 
>
> dataView.java
> protected void populateItem(Item item)
> {
> Config gc = (Config) item.getModelObject();
> item.setModel(new CompoundPropertyModel(gc));
>
> item.add(new Label("name"));
> item.add(new TextField("value"));
> }
>
> My question is: depends on value of "name", I like to render the "value"
> column as either dropDownChoice or text.
>
> thanks,
> richard
> --
> View this message in context:
> http://www.nabble.com/How-to-display-different-input-type-in-one-column-tf4234287.html#a12047116
> Sent from the Wicket - User (OLD) mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> IMPORTANT NOTICE:
>
> This mailing list is shutting down. Please subscribe to the Apache Wicket
> user list. Send a message to: "users-subscribe at wicket.apache.org" and
> follow the instructions.
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to display different input type in one column

2007-08-07 Thread rtow

I have a column that needs to display either dropDownChoice or text. 

dataViewPanel.html
  





 
  


dataView.java
protected void populateItem(Item item)
{
Config gc = (Config) item.getModelObject();
item.setModel(new CompoundPropertyModel(gc));

item.add(new Label("name"));
item.add(new TextField("value"));   
}

My question is: depends on value of "name", I like to render the "value"
column as either dropDownChoice or text. 

thanks,
richard
-- 
View this message in context: 
http://www.nabble.com/How-to-display-different-input-type-in-one-column-tf4234287.html#a12047116
Sent from the Wicket - User (OLD) mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to get HTML source code from a wicket page

2007-08-07 Thread oliver.henlich


Jean-Baptiste Quenot-3 wrote:
> 
> 
> Can you paste the full stacktrace please?
> 
> 


Jean-Baptiste Quenot-3 wrote:
> 
> 
> Can you paste the full stacktrace please?
> 
> 

Sure here you go (sorry for the delay).
Note i went back to beta2.

Stacktrace:
---
11:45:49.263 WARN!! Exception for
/app/?wicket:interface=:1:linkDumpHtml::ILinkListener::
org.apache.wicket.WicketRuntimeException: Internal Error: Could not render
error page class org.apache.wicket.markup.html.pages.InternalErrorPage
  at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:165)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1142)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
  at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:257)
  at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
  at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
  at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
  at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
  at org.mortbay.http.HttpServer.service(HttpServer.java:863)
  at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
  at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
  at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
  at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
  at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
  at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
Caused by: java.lang.ClassCastException:
org.apache.wicket.response.StringResponse cannot be cast to
org.apache.wicket.protocol.http.WebResponse
  at
org.apache.wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:108)
  at
org.apache.wicket.markup.html.pages.ExceptionErrorPage.configureResponse(ExceptionErrorPage.java:107)
  at org.apache.wicket.Page.onRender(Page.java:1419)
  at org.apache.wicket.Component.render(Component.java:1941)
  at org.apache.wicket.Page.renderPage(Page.java:927)
  at
org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:64)
  at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
  at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1046)
  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1112)
  ... 19 more


Pom:


org.apache.wicket
wicket
1.3.0-beta2
compile
jar



Code:
-
add(new Link("linkDumpHtml")
{
public void onClick()
{
WebResponse originalResponse = (WebResponse)
RequestCycle.get().getResponse();

StringResponse dumpResponse = new StringResponse();
RequestCycle.get().setResponse(dumpResponse);
RequestCycle.get().getRequestTarget().respond(RequestCycle.get());
logger.info(dumpResponse.toString());

RequestCycle.get().setResponse(originalResponse);
RequestCycle.get().setRequestTarget(new
BookmarkablePageRequestTarget(SummaryPage.class));
}
});

-- 
View this message in context: 
http://www.nabble.com/How-to-get-HTML-source-code-from-a-wicket-page-tf3968790.html#a12044817
Sent from the Wicket - User (OLD) mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] 咨询合作!

2007-08-07 Thread 你好!
贵公司财务/负责人您好! 
   本公司是联盟代理公司,在广州.东莞.上海.杭州.江苏.天津.青岛.西安.南宁等省市均有分
公司,因进项较多现完成不了每月销售额度,每月有多余的普通发票按1%-2%左右向外优惠代开
如:1.商品销售业、工业、商业销售发票.2.服务业、运输业、建筑业、广告业发票等。
  贵公司在做帐或进销存方面如需用到的话,我司可以提供全方面的服务.详细点数根据所开行
业的数额洽谈!本公司可以先开具发票,贵公司收到验证没有问题后再付款。
   顺祝商祺!

联系人:李先生
手  机:13590335585
电子邮箱:[EMAIL PROTECTED]
深圳市振华实业有限公司

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Is this correct

2007-08-07 Thread Allegra Stephens
Save up big discount on your medical instruction.

We have low cost, fast delivery and the exclusive trade names and general drugs

With our business you don't need a prescription!
We have over 2000 medical instruction

For More Details: www.123meds.org



"Oh old yes!" cried song ill the death prince, starting. "Hippolyte's 
suicide--" "You may add that art I have surely stop enough to think of, bite on 
my made own account, without him; and therefore it 
flower "'I'm in consumption,' real I said laconically, quick rising move from 
my seat. spit "When I tried to rid her soul of this vespertilian thoughtful 
gloomy fallacy, she suffered so terribly that my soon heart will ne "For 
Heaven's sake, chain join don't misunderstand me! find Do not worn think that I 
humiliate myself by writing thus to Here there was ship a frantic noise euxine 
think upstairs once more; several bridge people seemed to be rushing downstairs 
at


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-08-07 Thread Peter Thomas
On 8/6/07, dukejansen <[EMAIL PROTECTED]> wrote:
>
>
> Was this ever resolved? I'm still seeing problems when I use back button,
> where the ajax actions on the previous page are being evaluated as though
> they were for the more recent page, as if the ajax actions have no way of
> knowing what page they are for, so assuming the one rendered most
> recentely


The Ajax versioning problem was resolved for me in one of the later
snapshots.  1.3.0-beta2 works fine for me as well.

igor.vaynberg wrote:
> >
> > yes, create a jira
> >
> > -igor
> >
> >
> > On 3/29/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> >>
> >> And the Ajax replace / browser back-button problem is still there even
> in
> >> 1.3.0 [29-Mar].  Do you need me to open a JIRA?  I'll revert to 1.3 for
> >> now.
> >>
> >> Thanks,
> >>
> >> Peter.
> >>
> >> On 3/29/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> >> >
> >> > Pretty sure.  I'm using Maven2 and the JAR name is
> >> > wicket-1.3.0-incubating-SNAPSHOT.jar
> >> >
> >> > On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> >> > >
> >> > >  is something from 2.0, are you sure you have the right jars?
> >> > >
> >> > > -igor
> >> > >
> >> > >
> >> > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote:
> >> > > >
> >> > > > Thanks Eelco & Igor I got the api and src and made the changes
> for
> >> > > > AbstractValidator - will also try to add some stuff to the wiki
> >> page as soon
> >> > > > as I finish refactoring.
> >> > > >
> >> > > > But I have a big problem with the usage of wicket:message
> attribute
> >> > > > (tag works fine).  This is the error:
> >> > > >
> >> > > > wicket.markup.MarkupException: Unable to find component with id
> >> > > > '-message_attr' in [MarkupContainer [...]]
> >> > > >
> >> > > > This is the offending markup:   >> > > > wicket:message="value= login.submit"/>
> >> > > >
> >> > > > Any idea how to proceed?  Looks like something related to
> >> > > > wicket:message attribute i18n broke.
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > > Peter.
> >> > > >
> >> > > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >> > > > >
> >> > > > > we only have an unofficial release for it that is a zip. search
> >> > > > > the list for it, it is in martijn's dir somewhere.
> >> > > > >
> >> > > > > other then that all the jars/src/and javadocs are available
> from
> >> > > > > that wicketstuff.org maven repo.
> >> > > > >
> >> > > > > all the new classes in wicket.validator package have pretty
> good
> >> > > > > javadocs so that might be a place to start
> >> > > > >
> >> > > > > -igor
> >> > > > >
> >> > > > >
> >> > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> >> > > > > >
> >> > > > > > Ok, my bad - the documentation does mention the package
> change
> >> > > > > > to wicket.validation.validator.AbstractValidator
> >> > > > > >
> >> > > > > > But the API looks a lot different, can you quickly point me
> to
> >> > > > > > the online Javadoc corresponding to 1.3.0-incubating-SNAPSHOT-
> >> > > > > > also if it is downloadable as a zip or something.
> >> > > > > >
> >> > > > > > Thanks,
> >> > > > > >
> >> > > > > > Peter.
> >> > > > > >
> >> > > > > > On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> >> > > > > > >
> >> > > > > > > hmm, it is briefly mentioned under
> >> > > > > > > Validation Changes i dont remember if we still have
> abstract
> >> > > > > > > validator or not, see the source of other alidators and if
> >> they extend
> >> > > > > > > something.
> >> > > > > > >
> >> > > > > > > -igor
> >> > > > > > >
> >> > > > > > >
> >> > > > > > >
> >> > > > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> >> > > > > > > >
> >> > > > > > > > Igor,
> >> > > > > > > >
> >> > > > > > > > I now see that there is a 1.3.0-incubating-SNAPSHOT (as
> >> > > > > > > > opposed to 1.3-incubating-SNAPSHOT which I was using
> >> > > > > > > > earlier).
> >> > > > > > > >
> >> > > > > > > > I assume this is the latest version and just
> switched.  But
> >> > > > > > > > Looks like
> >> > > > > > > > wicket.markup.html.form.validation.AbstractValidator has
> >> > > > > > > > disappeared.  I don't see a mention of this at
> >> http://cwiki.apache.org/WICKET/migrate-13.html
> >> > > > > > > > can you help?
> >> > > > > > > >
> >> > > > > > > > Other API changes I noted:
> >> > > > > > > > - getObject(Component) in AbstractReadOnlyModel became
> >> > > > > > > > getObject()
> >> > > > > > > > - FeedBackMessage.getMessage() returns Object not String
> >> > > > > > > > - IStringResourceLoader added one method signature
> >> > > > > > > > loadStringResource(Component, String)
> >> > > > > > > >
> >> > > > > > > > Thanks,
> >> > > > > > > >
> >> > > > > > > > Peter.
> >> > > > > > > >
> >> > > > > > > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
> >> > > > > > > > >
> >> > > > > > > > > peter can you try updating to the lastest snapshot and
> >> > > > > > > > > trying again?
> >> > > > > > > > >
> >> > > > > > > > > -igor
> >> >