Re: How to update parent component from a panel?

2008-12-16 Thread freak182

Hello,
I just got into this message just now...you know you have to play with
ajaxrequesttartget component...

For: Timo
  I want to ask if this events stuff is already available in wicket 1.3.5
release? if so, what classes should i look into?

Thank you for your help.




Lenka Laurincikova wrote:
 
 Hello, 
 
 I have followed this example. Thank you a lot, it is actually helped me.
 However even though I got refreshed component, the previous state of the
 component is still displayed. I have to refresh the page to remove it.
 
 Any helping hint would be appreciated.
 
 regards
 Lenka
 
 
 Timo Rantalaiho wrote:
 
 On Mon, 09 Jun 2008, freak182 wrote:
 Im having problem of updating parents components.Hereis my problem,
 there is
 page and in that page there is a panel. The panel contain a
 FormUpdatingComponent that attached to a dropdownchoice. Now when the
 dropdown is triggered, i want to update the parents (the page)
 textbox/label..is this possible?
 
 Hmm, what is FormUpdatingComponent?-) A typo perhaps?
 
 Sure it is possible, e.g. something like
 
 public class FooPage extends WebPage {
 public FooPage() {
 Panel fooPanel = new FooPanel(fooPanel, ... 
 
  Foo initialSelection = ...
  IModel fooModel = new Model(initialSelection);
 final Label display = new Label(foo, fooModel);
  display.setOutputMarkupId(true);
  add(display);
  DropDownChoice selection = new DropDownChoice(fooSelection,
 fooModel, choices);
 selection.add(new AjaxFormComponentUpdatingBehavior(onchange) {
  public void onEvent(AjaxRequestTarget target) {
  target.addComponent(display);
  }
  });
  fooPanel.add(selection);
  ...
 }
 }
 
 But if your Panel is further away from the other
 components directly on the page, this might get trickier.
 For normal requests you can often get away with sharing the
 model, but if passing it all the way to the sending
 component gets nasty, or if you want to repaint something in
 the parent via Ajax, something like this might be easier
 
 public interface FooChoiceListener {
   void onSelection(IModel foo, AjaxRequestTarget target);
 }
 
 public class MyLabel extends Label implements FooChoiceListener {
 ...
   public void onSelection(IModel foo, AjaxRequestTarget target) {
 setModelObject(foo.getObject());
 target.addComponent(this);
   }
 }
 
 
 public class FooPage extends WebPage {
   public FooPage() {
 Label display = new MyLabel(...);
 add(new FooPanel());
 ...
   }
 }
 
 public class FooPanel extends Panel {
   public FooPanel(String id, IModel foo) {
   ...
 DropDownChoice selection = new DropDownChoice(fooSelection,
   fooModel, choices);
 selection.add(new AjaxFormComponentUpdatingBehavior(onchange) {
   public void onEvent(AjaxRequestTarget target) {
 getPage().visitChildren(FooChoiceListener.class, 
new IVisitor() {
  public Object component(Component c) {
((FooChoiceListener) c).onSelection(fooModel, target);
return CONTINUE_TRAVERSAL;
   }
  });
   }
 });
   }
 }
 
 A generic eventbroadcaster can be found here
 
   http://issues.apache.org/jira/browse/WICKET-1312
 
 Best wishes,
 Timo
 
 -- 
 Timo Rantalaiho   
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-update-parent-component-from-a-panel--tp17748294p21031933.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



Strange exception in mountBookmarkablePage

2008-12-17 Thread freak182


hello,
I just mount my urls wuth this strategy mountBookmarkablePage(details,
BaseDetailsPage.class), it works fine for my need but there is an exception
thrown:

2008-12-18 11:21:39,179 INFO  - BaseDetailsPage- selected tab is
= 4
2008-12-18 11:21:40,485 WARN  - estTargetUrlCodingStrategy - URL fragment
has unmatched key/value pairs, responding with 404. Fragment:
tabs/img/calcu-background.png
2008-12-18 11:21:40,621 ERROR - RequestCycle   - Can't
instantiate page using constructor public
com.ccti.ropoa.common.details.BaseDetailsPage(org.apache.wicket.PageParameters)
and argument tabs = null
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor public
com.ccti.ropoa.common.details.BaseDetailsPage(org.apache.wicket.PageParameters)
and argument tabs = null
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:168)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:268)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)



at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:147)
... 29 more
Caused by: org.apache.wicket.util.string.StringValueConversionException:
Unable to convert 'null' to an int value
at org.apache.wicket.util.string.StringValue.toInt(StringValue.java:505)
at org.apache.wicket.util.string.StringValue.toInt(StringValue.java:520)
at org.apache.wicket.util.value.ValueMap.getInt(ValueMap.java:257)
at
com.ccti.ropoa.common.details.BaseDetailsPage.init(BaseDetailsPage.java:42)
... 34 more
Caused by: java.lang.NumberFormatException: For input string: null
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at org.apache.wicket.util.string.StringValue.toInt(StringValue.java:501)
... 37 more

..i also encounter this with HybridurlEncodingStrategy...

Thanks a lot.
Cheers.


-- 
View this message in context: 
http://www.nabble.com/Strange-exception-in-mountBookmarkablePage-tp21066234p21066234.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



Wicket-Jasper report

2009-01-08 Thread freak182

Hello,

I made a small utility based on wicket-contrib-jasper. The feature of this
tools is that the jasper report is now paging using PageableListView or
QueryDataProvider. And display in embeded pdf format.

Anyone is free to enhance this and distribute.

Thanks.
http://www.nabble.com/file/p21348858/wicket-jasper.zip wicket-jasper.zip 
-- 
View this message in context: 
http://www.nabble.com/Wicket-Jasper-report-tp21348858p21348858.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



Help: Graphic link in PagingNavigator

2009-01-14 Thread freak182

Hello,

The clients wants the   and   should be graphic. Is there a way to
do this?

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-tp21453859p21453859.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: Wicket-Jasper report

2009-02-02 Thread freak182

Hello,

This is the updated version of wicket-jasper-core-1.3.0.

download:  http://www.nabble.com/file/p21788601/wicket-jasper-core.tgz
wicket-jasper-core.tgz 


freak182 wrote:
 
 Hello,
 
 I made a small utility based on wicket-contrib-jasper. The feature of this
 tools is that the jasper report is now paging using PageableListView or
 QueryDataProvider. And display in embeded pdf format.
 
 Anyone is free to enhance this and distribute.
 
 Thanks.
  http://www.nabble.com/file/p21348858/wicket-jasper.zip wicket-jasper.zip 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Jasper-report-tp21348858p21788601.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



Wicket + iframe Session Question

2009-02-25 Thread freak182

Hello,

How can I get the session from my main application to the application in the
iframe? here is the scenario:

1. I have a large wicket application then we agree to separate the reporting
from main application.
2. The said report application is also a wicket and jasper but embedded into
iframe.

eg. class TestIframePage extends WebPage {

  publiuc TestIframePage() {
  
   final String reportServerUrl =
http://localhost:8282/reports?reportname=;;

final StringBuilder build = new StringBuilder();
build.append(reportServerUrl).append(getReportName());

final WebMarkupContainer wmc = new WebMarkupContainer(wmc);
wmc.add(new SimpleAttributeModifier(src,build.toString()));
add(wmc);

  }

   @Override
public String getReportName()
{
return reportName;
}

}

...and the html file is.

TestIframePage.html

html
head
titleReports/title
/head
body

iframe wicket:id=wmc width=500 height=500

/iframe

/body
/html

3. As of now it's working fine...now the problem is I want the main
application session will be passed to report application in the iframe. So
that i can authenticate the user from the main application. You, might said
that I could pass using parameter but we already discuss that but for
security reason we cannot pass it through paramater. I have to securely get
the session or paramaters from main application to iframe application.

Any idea.

Thanks a lot.
Cheers.

-- 
View this message in context: 
http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22218613.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



How to send serialize/byteArrayOutput stream from wicket page

2009-02-26 Thread freak182

Hello,

How can i send a serialize object using byteArrayOutput stream in wicket
page. here is my code:

public class BridgeIndex extends WebPage {

 public BridgeIndex()
{
final HttpServletResponse response =
getWebRequestCycle().getWebResponse().getHttpServletResponse();
ObjectOutputStream out = null;

final ByteArrayOutputStream byteObj = new ByteArrayOutputStream();
final BridgeObject bObj = new BridgeObject();
bObj.setPassword(123456);
bObj.setUsername(test);
try
{

out = new ObjectOutputStream(byteObj);

log.info(Serializing the object...);
// serialize the object
out.writeObject(bObj);

response.setHeader(Cache-Control, no-store);
response.setHeader(Pragma, no-cache);
response.setContentType(application/octet-stream);
final ServletOutputStream outstream = response.getOutputStream();

outstream.write(byteObj.toByteArray());
outstream.flush();
outstream.close();

}
catch (MalformedURLException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}

}
}
...i get this error

ERROR - WicketFilter   - closing the buffer error
java.lang.IllegalStateException: STREAM
at org.mortbay.jetty.Response.getWriter(Response.java:586)
at 
org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:355)
at
org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:371)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)

...i want to access user object to the separate application..tnx.

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/How-to-send-serialize-byteArrayOutput-stream-from-wicket-page-tp0804p0804.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: Wicket + iframe Session Question

2009-02-26 Thread freak182

Hello,
It is an InlineFrame


reiern70 wrote:
 
 I think InlineFrame is the guy...
 
 On Thu, Feb 26, 2009 at 12:47 PM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:
 
 Arent there a InternalFrame or something already in wicket?

 I think this has been discussed before, search with nabble

 2009/2/26 freak182 eman.noll...@gmail.com

 
  Hello,
 
  How can I get the session from my main application to the application
 in
  the
  iframe? here is the scenario:
 
  1. I have a large wicket application then we agree to separate the
  reporting
  from main application.
  2. The said report application is also a wicket and jasper but embedded
  into
  iframe.
 
  eg. class TestIframePage extends WebPage {
 
   publiuc TestIframePage() {
 
final String reportServerUrl =
  http://localhost:8282/reports?reportname=;;
 
 final StringBuilder build = new StringBuilder();
 build.append(reportServerUrl).append(getReportName());
 
 final WebMarkupContainer wmc = new WebMarkupContainer(wmc);
 wmc.add(new SimpleAttributeModifier(src,build.toString()));
 add(wmc);
 
   }
 
@Override
 public String getReportName()
 {
 return reportName;
 }
 
  }
 
  ...and the html file is.
 
  TestIframePage.html
 
  html
 head
 titleReports/title
 /head
 body
 
 iframe wicket:id=wmc width=500
 height=500
 
 /iframe
 
 /body
  /html
 
  3. As of now it's working fine...now the problem is I want the main
  application session will be passed to report application in the iframe.
 So
  that i can authenticate the user from the main application. You, might
 said
  that I could pass using parameter but we already discuss that but for
  security reason we cannot pass it through paramater. I have to securely
 get
  the session or paramaters from main application to iframe application.
 
  Any idea.
 
  Thanks a lot.
  Cheers.
 
  --
  View this message in context:
 
 http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22218613.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
 
 

 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22235105.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



page expiration of main application when using iframe

2009-03-05 Thread freak182

Hello,

I have a main application and in a page i put an iframe. the source of that
iframe is another wicket application. now when navigate to the application
in the iframe and then click other menus in main application the page
expired. what could go wrong? there is no stacktrace displayed.

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/page-expiration-of-main-application-when-using-iframe-tp22367009p22367009.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



wicket-jasper UI

2009-03-21 Thread freak182

Hello,

I just wanna share this simple project called wicket-jasper. It is basically
jasperreports embeded in wicket. If you wanna share your idea or added some
features,please do so. Anyway, our company is already using it please see
the attached files. 

Thanks. Cheers

http://www.nabble.com/file/p22634657/wicket-jasper.tar wicket-jasper.tar 
-- 
View this message in context: 
http://www.nabble.com/wicket-jasper-UI-tp22634657p22634657.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



TextField does not update during page erros

2008-07-02 Thread freak182

Hello,
My problem here is that when there is a page error the textfield is not
updated during target.addcomponet call..here is my code snippet:

class MyPage ...


  MyPanel mypanel 
   add(mypanel)

class MyPanel. 

  TextField amt = new TextField(amt,new PropertyModel(this,amt));
  TextField convAmtText = new TextField(convamt, new
PropertyModel(this,convamt));
   convAmtText .setOutputMarkupId(true)

  amt.add(new AjaxFormComponentUpdatingBehavior(onblur){
@Override
protected void onUpdate(final AjaxRequestTarget target) 
{
try {
convAmt = rate * getAmt();


convAmtText.setModelObject(convAmt);
target.addComponent(convAmtText);
} catch (Exception e) {
e.printStackTrace();
}
}
});

...after the call onblur the convAmtText is not updated. Do i miss
something?or what?

Thanks a lot... cheers.


-- 
View this message in context: 
http://www.nabble.com/TextField-does-not-update-during-page-erros-tp18233173p18233173.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: wicketstuff-push

2008-07-03 Thread freak182

You can also check out the jetty website for the latest cometd
implementation...fyi, it comes with the jetty server...it's great i use it
also to my project the wicket-push :)


julien Graglia wrote:
 
 Le jeudi 03 juillet 2008 à 16:28 +0200, Frank Bille a écrit :
 As far as I know it only lives in subversion. I tried it myself a month
 ago
 and it is functional:
 
 http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/
 http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/
 
 Thx !!!
 -- 
 Julien Graglia - NetCeler
 Tel: 04-92-57-12-12
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicketstuff-push-tp18260308p18271006.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: sneak peek - brix - wicket/jcr cms

2008-07-10 Thread freak182

I checked out brix and run, it's cool :) ...I know a popular CMS built in PHP
(Joomla)..i know brix is still in development but if could brix do like
joomla it would be great...it is possible? or is just a wish list :) hehehe
anyway, goodluck to the team...its cool to have cms like this in java and
most our project is in wicket :)


igor.vaynberg wrote:
 
 a few of us have been quietly working on a wicket/jcr cms called Brix
 for a while now. it is almost at a point where we are ready to release
 a beta, just waiting for wicket-m3 build to go official. in the
 meanwhile, if you are not afraid of building from source and want a
 sneak peek, you can check it out here [1].
 
 brix is more of a cms framework/library than a full blown cms. it is
 designed to be integrated into wicket applications that require cms
 functionality as part of their feature set. for example, at my company
 we have built a set of ecommerce tiles (brix tiles are dynamic
 components that can live inside a cms page) that allow us to build
 webstores on top of brix.
 
 brix includes a url coding strategy (which will hopefully become part
 of wicket 1.5) that allows for stateless pages as well as url
 contribution from tiles and query/indexed parameter mixtures. it has
 been designed with scalability in mind although we have not yet built
 a caching solution, nor tested if one is necessary.
 
 to hopefully preempt some common questions:
 brix uses a simple plugin system to allow extensibility. we did not
 use osgi because our time is limited and running wicket inside osgi or
 osgi inside wicket is not straight forward yet. will we switch to osgi
 later? maybe. we did not use spring because we did not need the
 overhead and spring's jcr support is broken because its
 jcrsessionfactory does not support multiple jcr workspaces so we would
 have to roll our own anyways.
 
 suggestions, feedback, etc are welcome as well as any help. we have
 not been working on this very long so it is not extremely polished
 yet. for more info see the website.
 
 [1] http://brix-cms.googlecode.com
 
 -igor
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/sneak-peek---brix---wicket-jcr-cms-tp18350188p18376603.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: Component self updating when Ajax call changed a commun model ?

2008-07-13 Thread freak182

Hello,
You can try this one, maybe i can help you... Timo suggested it to me and it
work great..

http://www.nabble.com/How-to-update-parent-component-from-a-panel--td17748294.html

Cheers...


ZedroS wrote:
 
 Hi
 
 I've the following issue : in a panel a checkbox needs to be disabled
 depending on a ajax updated list in a sub panel (if there is something
 in the list the checkbox is disabled).
 
 Currently I give the checkbox reference to the other panel and then use it
 in the sub panel add AjaxLink.  
 
 However, I will have soon more components on which this checkbox will
 depend for its state (lists in other sub panels). 
 
 As such, I wonder if there is a way for this checkbox to be updated each
 time one of the sub panels list is changed, knowing that they all share
 the same model.
 
 What do you think of it ?
 
 NB : I saw this discussion
 http://www.nabble.com/Updating-distant-(unrelated)-components-via-Ajax-when-a-shared-model-changes-to13165777.html#a13165777
 but I'm not sure it's the only way...
 
 Let's see if Wicket surprises me one more time ;)
 
 ++
 zedros
 

-- 
View this message in context: 
http://www.nabble.com/Component-self-updating-when-Ajax-call-changed-a-commun-model---tp18355808p18437336.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: wicketstuff-push

2008-07-16 Thread freak182

Hello,
I successfully implement wicket-push in our wicket application...i just used
the example in the wicket-stuff...with the default configuration...i just
checked out and run it...then customized for our needs...

 i think the mininum requirement is jetty 6.1.4 to run it
 and it even run on tomcat 6 and JBoss 4...you should have servlet 2.5
running on you server

 Cheers...


julien Graglia wrote:
 
 
  Le jeudi 03 juillet 2008 à 16:28 +0200, Frank Bille a écrit :
  As far as I know it only lives in subversion. I tried it myself a
 month
  ago
  and it is functional:
  
 
 http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/
 
 http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/
  
 
 I try to use wicketstuff-push with wicket 1.4-m3, but I can't get it to
 work.
 
 I have checkout wicketsuff-dojo (and examples), modified them to use
 jetty 7.0.0pre2 and wicket 1.4-m3 and it is OK.
 
 Then I co wicketstuff-push and examples, modified them to use the same
 version of wicket (some errors to correct) and jetty, but I can't get it
 to work.
 
 The examples A chat using simulated channel based on polling and A
 chat using simulated push based on polling are working (polling is OK)
 but I get an NPE when I really use CometdBayeux  with test Basic Cometd
 tests :
 
 2008-07-15 16:33:55.466::WARN:  Error for
 /wicketstuff-push-examples/cometd
 java.lang.Error:
 [{channel:/meta/reconnect,connectionType:long-polling,clientId:1nnmumdfsusjgcj3km,connectionId:undefined,timestamp:null,id:null}]
   at
 org.mortbay.cometd.AbstractCometdServlet.getMessages(AbstractCometdServlet.java:304)
   at
 org.mortbay.cometd.continuation.ContinuationCometdServlet.doPost(ContinuationCometdServlet.java:68)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at
 org.mortbay.cometd.AbstractCometdServlet.service(AbstractCometdS
 Caused by: java.lang.NullPointerException
   at org.mortbay.cometd.MessageImpl.put(MessageImpl.java:144)
   at org.mortbay.cometd.MessageImpl.put(MessageImpl.java:15)
   at org.mortbay.util.ajax.JSON.parseObject(JSON.java:767)
   at org.mortbay.util.ajax.JSON.parse(JSON.java:707)
   at org.mortbay.util.ajax.JSON.parseArray(JSON.java:837)
 
 
 It seems that the Id param is null...(from the 7.0.0pre1 sources of
 cometd : the 7.0.0pre2 did not exists (1)) 
 
 I didn't find how to correct this... I have search deeply in wicketpush
 and wicketdojo, and it seems to came from a javascript in
 wicketstuff-dojo.. I realize that wicketstuff-dojo use dojo 0.4
 internally, (I'am not a dojo expert, but the last version seems to be
 1.1.1)...
 
 So here are my questions : 
 - did anybody successfully manage to use wicketstuff-push with jetty
 (6.1.11 or 7.0.0pre1)? 
 - wicketstuff-push is it alive? last commit was 15/11/07 ...
 -and if not what do you use to do reverse ajax with wicket?
 
 Note : I already used cometd-bayeux in a Spring MVC Application, so
 maybe the solution is to use cometd at low level ie. with no
 integration with wicket...?
 
 
 
 Thanx,
 
 1 : sources of cometd-bayeux artefact (only in version 7.0.0pre1):
 http://repo1.maven.org/maven2//org/mortbay/jetty/cometd-bayeux/7.0.0pre1/
 --
 Julien Graglia
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicketstuff-push-tp18260308p18500023.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: wicketstuff-push

2008-07-17 Thread freak182

Hello,
to be exact i used wicket 1.3.3 and jetty 6.1.4
i dont know if the wicket-push has already been updated...anyway, my source
code is in my another pc which so happended that is in repair shop :(


julien Graglia wrote:
 
 Le mercredi 16 juillet 2008 à 18:47 -0700, freak182 a écrit :
 Hello,
 I successfully implement wicket-push in our wicket application...i just
 used
 the example in the wicket-stuff...with the default configuration...i just
 checked out and run it...then customized for our needs...
 
 With wicket 1.4-m3 ? ? some changes occurs from wicket 1.3.x to 1.4...
 
 
 
  i think the mininum requirement is jetty 6.1.4 to run it
  and it even run on tomcat 6 and JBoss 4...you should have servlet 2.5
 running on you server
 
 
 I try with jetty 6.1.11 (servlet 2.5) and with jetty 7.0.0pre2 (servlet
 3.0) -- no  success.
 
 
 I double check my project and I have checkout the good svn url.. 
 
 But with wicket *1.4-m3*, it didn't compile (most errors are easy :
 missing @Override (an error in my Eclipse config), some generics
 (IModel...), use of AbstractCometdServlet (CometdServlet did not
 exists in org.mortbay.cometd), use of dojox.bayeux.* from
 cometd-api.jar... 
 
 The main error is in push examples :
 org.wicketstuff.push.examples.pages.push.WicketAbstractPushChat (1)
 
 I try to correct everything, now everything compile, but the cometd
 example fails... 
 
 1 :  I have found that mail talking about that error :
 http://www.mail-archive.com/users@wicket.apache.org/msg15406.html
 
 --
 Julien Graglia
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicketstuff-push-tp18260308p18504561.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]



Guiedlines in Wicket

2008-07-30 Thread freak182


My superior ask me to submit a Guidelines in Wicket. He assign it to me
because I trained the new employee the wicket framework (we are using wicket
as our UI framework along with Hibernate and Spring...actually we already
develop two application in wicket and third one is migration from asp to
wicket). Is there really a Guidelines or it is just we follow the
guidelines in java programming naming convention and etci appreciate any
suggestion/s or comment/s.

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/Guiedlines-in-Wicket-tp18745859p18745859.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]



Crystal Report

2008-08-29 Thread freak182

Hello,

Does anyone here had encountered using crystal report with wicket as a
reporting tool? Any idea how to integrate crystal report? I already know how
to integrate jasper.

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/Crystal-Report-tp19217374p19217374.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: Crystal Report

2008-08-31 Thread freak182

Hello,
Yah, Cryastal Report has some concurrent process licensing issue. i just
encountered it in the project where I'm supporting to. It is such pain in
the ass that we don't know what going wrong until we found that freaking CPL
issue. Nwei, im encouraging the PM of next project I'm into to use jasper
instead but client is using crystal report for their current app's. So there
is a struggle between. But just in case we use crystal report, i might post
again for help.

Thanks a lot.
Cheers.


msc65jap wrote:
 
 Yeah, I have with a Wicket app. that serves Crystal Reports XI
 reports. I scrapped using its J2EE business connector and, instead,
 wrote the reports in PDF format to the local filesystem and emailed
 them to user. I would recommend doing this asynchronously because of
 the expensive I/O costs. You don't have to email them but I had to do
 as it was my use case.
 
 Crystal Reports API is a big pain in the backside so good luck!
 
 Best,
 James.
 
 On Fri, Aug 29, 2008 at 11:24 AM, freak182 [EMAIL PROTECTED] wrote:

 Hello,

 Does anyone here had encountered using crystal report with wicket as a
 reporting tool? Any idea how to integrate crystal report? I already know
 how
 to integrate jasper.

 Thanks a lot.
 Cheers.
 --
 View this message in context:
 http://www.nabble.com/Crystal-Report-tp19217374p19217374.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Crystal-Report-tp19217374p19247719.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]



Pageable JasperReport

2008-09-01 Thread freak182

Hello,

I checkout the wicket-jasperreport project i successfully play with it. Now
my problem is, i want a pagination functionality in the wicket-jasperreport
example. The report data that came from the db and it has 1,000 records
retrieved and i dont want to display that in pdf 1000 pages , (although pdf
reader has a pagination function and to minimize db query) , instead i want
a paging navigator. I just want a functionality just like DataView that
fetch every time the data from db when the link click. 

here is the code snippet from wicket-jasperreport

/**
 * Simple Jasper reports example with PDF output and a jasper reports
panel..
 * 
 * @author Eelco Hillenius
 */
public class SimplePdfPage extends WicketExamplePage implements Serializable
{
/**
 * Constructor.
 */
public SimplePdfPage()
{
ServletContext context = ((WebApplication)
getApplication()).getServletContext();
final File reportFile = new
File(context.getRealPath(/reports/ds_report_1.jasper));
final Map parameters = new HashMap();
JRResource pdfResource = new
JRHtmlResource(reportFile).setReportParameters(

parameters).setReportDataSource(createReportDataSource());
add(new EmbeddedJRReport(report, pdfResource));
}

...I want the JasperReport DataSource ( to be more precise
JRBeanCollectionDataSource) came from the paged list from the paging
navigator. Can someone point to me where should i start or what wicket
should i extend/implement or do some code changing?

Thanks a lot.
Cheers.

-- 
View this message in context: 
http://www.nabble.com/Pageable-JasperReport-tp19250292p19250292.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]



JasperReport in IFrame

2008-09-12 Thread freak182

Hello Eelco,

It is possible for the jasperreport to be display in iframe in html format?
because the example that comes with the wicket-contrib-jasperreports the pdf
is embeded in the page through the object tag. If it is possible also for
the html export to be view in iframe inside the page?

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/JasperReport-in-IFrame-tp19453299p19453299.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: Pageable JasperReport

2008-09-22 Thread freak182


I think i have to reply to my post :) ..nwei, i successfully implemented
pageable in jasperreports using wicket's pageablelistview and it is a hack
i supposed. :)
and im going to do it also in DataView since the data there is refresh every
time the pagelink is click. This is better option for large report options
where the data is not stored in the collection to be paged later.

Thanks to the developer of  wicket-jasperreport projects

Thanks a lot.
Cheers.


freak182 wrote:
 
 Hello,
 
 I checkout the wicket-jasperreport project i successfully play with it.
 Now my problem is, i want a pagination functionality in the
 wicket-jasperreport example. The report data that came from the db and it
 has 1,000 records retrieved and i dont want to display that in pdf 1000
 pages , (although pdf reader has a pagination function and to minimize db
 query) , instead i want a paging navigator. I just want a functionality
 just like DataView that fetch every time the data from db when the link
 click. 
 
 here is the code snippet from wicket-jasperreport
 
 /**
  * Simple Jasper reports example with PDF output and a jasper reports
 panel..
  * 
  * @author Eelco Hillenius
  */
 public class SimplePdfPage extends WicketExamplePage implements
 Serializable
 {
   /**
* Constructor.
*/
   public SimplePdfPage()
   {
   ServletContext context = ((WebApplication)
 getApplication()).getServletContext();
   final File reportFile = new
 File(context.getRealPath(/reports/ds_report_1.jasper));
   final Map parameters = new HashMap();
   JRResource pdfResource = new
 JRPdfResource(reportFile).setReportParameters(
   
 parameters).setReportDataSource(createReportDataSource());
   add(new EmbeddedJRReport(report, pdfResource));
   }
 
 ...I want the JasperReport DataSource ( to be more precise
 JRBeanCollectionDataSource) came from the paged list from the paging
 navigator. Can someone point to me where should i start or what wicket
 component should i extend/implement or do some code changing?
 
 Thanks a lot.
 Cheers.
 
 

-- 
View this message in context: 
http://www.nabble.com/Pageable-JasperReport-tp19250292p19602334.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: how to customize error message of requiredtextfield inside listview

2008-10-09 Thread freak182


Thanks igor it works. :)

Thanks a lot.
Cheers.


igor.vaynberg wrote:
 
 Required=${label} is required
 
 textfield.setlabel(new model(question +item.getindex()));
 
 -igor
 
 On Thu, Oct 9, 2008 at 2:16 AM, freak182 [EMAIL PROTECTED] wrote:

 Hello,

 My problem is how to customize error message of requiredtextfield inside
 listview? here is the scenario: i have a requiredtextfield in the
 listview,
 of course the listview is inside the form. actually it is dynamic
 question 
 answer that came from DB. now if the user did not answer the question
 number
 1 provided it should display an error Please answer the Question for
 number
 1 and so on...And suppose i have 5 question how i can determine which
 question is not answered.

 i already do this: arcotForm.qasetup.3.question.Required=Please enter
 Question 4

 when there is 2 question that left empty the error displayed: Please
 enter
 Question 4 (2x)

 Thanks a lot.

 Cheers.

 --
 View this message in context:
 http://www.nabble.com/how-to-customize-error-message-of-requiredtextfield-inside-listview-tp19895203p19895203.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-customize-error-message-of-requiredtextfield-inside-listview-tp19895203p19910696.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]



how to redirect wicket pages using javascript

2008-10-20 Thread freak182

Hello,

I have a project which uses mostly javascript because it is a client base
part. My problem is when i cannot redirect wicket pages in javascript. I
already try this in behavior:

.
init.js

function clientReady() {

 location.href = '${url}';

}

in behavior...

final Map params = 

 map.put(url , RequestCycle.get().urlFor(new TestPage());

component.add(TextTemplateHeaderContributor.forJavaScript(InitBehavior.class,
init.js, params));
super.bind(component);

i get an error:
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149)
... 29 more
Caused by: java.lang.IllegalArgumentException: Upper bound for nextInt must
be positive
at org.apache.commons.lang.math.JVMRandom.nextInt(JVMRandom.java:104)
at org.apache.commons.lang.math.RandomUtils.nextInt(RandomUtils.java:88)
at org.apache.commons.lang.math.RandomUtils.nextInt(RandomUtils.java:74)
at
com.ccti.digibanker.arcot.service.ArcotUserQAServiceImpl.get3QA(ArcotUserQAServiceImpl.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy20.get3QA(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)
at org.apache.wicket.proxy.$Proxy23.get3QA(Unknown Source)
at
com.ccti.digibanker.arcot.process.ArcotNoIdPage.init(ArcotNoIdPage.java:49)
... 34 more

any idea...Thanks a lot...Cheers.
-- 
View this message in context: 
http://www.nabble.com/how-to-redirect-wicket-pages-using-javascript-tp20083835p20083835.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: how to redirect wicket pages using javascript

2008-10-21 Thread freak182


Thanks Michael ...i could hardly detect that...hehehe cheers..
Thanks...


Michael Sparer wrote:
 
 looks like something's wrong in your service, check the random stuff at
 com.ccti.digibanker.arcot.service.ArcotUserQAServiceImpl.get3QA(ArcotUserQAServiceImpl.java:72)
 ;-) ... don't think it's anything related to the headercontributor
 
 
 freak182 wrote:
 
 Hello,
 
 I have a project which uses mostly javascript because it is a client base
 part. My problem is when i cannot redirect wicket pages in javascript. I
 already try this in behavior:
 
 .
 init.js
 
 function clientReady() {
 
  location.href = '${url}';
 
 }
 
 in behavior...
 
 final Map params = 
 
  map.put(url , RequestCycle.get().urlFor(new TestPage());
 
 component.add(TextTemplateHeaderContributor.forJavaScript(InitBehavior.class,
 init.js, params));
  super.bind(component);
 
 i get an error:
 Caused by: java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  at
 org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149)
  ... 29 more
 Caused by: java.lang.IllegalArgumentException: Upper bound for nextInt
 must be positive
  at org.apache.commons.lang.math.JVMRandom.nextInt(JVMRandom.java:104)
  at org.apache.commons.lang.math.RandomUtils.nextInt(RandomUtils.java:88)
  at org.apache.commons.lang.math.RandomUtils.nextInt(RandomUtils.java:74)
  at
 com.ccti.digibanker.arcot.service.ArcotUserQAServiceImpl.get3QA(ArcotUserQAServiceImpl.java:72)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
  at
 org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
  at
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
  at
 org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
  at
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
  at
 org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
  at
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
  at
 org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
  at $Proxy20.get3QA(Unknown Source)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)
  at org.apache.wicket.proxy.$Proxy23.get3QA(Unknown Source)
  at
 com.ccti.digibanker.arcot.process.ArcotNoIdPage.init(ArcotNoIdPage.java:49)
  ... 34 more
 
 any idea...Thanks a lot...Cheers.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-redirect-wicket-pages-using-javascript-tp20083835p20084989.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]



wicket redirect issue on IE7

2008-10-21 Thread freak182

Hello,

I have a problem in IE7 when i redirect wicket pages in javascript using
location.href = ?wicket:interface=:3 ..i generate that url using
RequestCycle.get().urlFor(new TestPage()). But it is working fine in
firefox...Is this a browser problem? How can i solve this problem?

Thanks a lot.
Cheers.
-- 
View this message in context: 
http://www.nabble.com/wicket-redirect-issue-on-IE7-tp20104115p20104115.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: redirect issue on IE causing HTTP 404

2008-10-23 Thread freak182

Hello Igor,

Im still investagating the scenario because in different machine where IE7
and IE6 install it works fine. Im just wandering why here in my machine
(IE7) is not working. sorry for the inconvenience. i will just investigate
before posting again.

Thanks a lot.
Cheers.



igor.vaynberg wrote:
 
 create a quickstart that reproduces this and attach it to a jira issue.
 
 -igor
 
 On Wed, Oct 22, 2008 at 9:27 PM, freak182 [EMAIL PROTECTED] wrote:

 Hello Igor,

 I have a problem in IE when i redirect wicket pages using javascript
 using
 location.href = '?wicket:interface=:3' . here is the scenario:

 public class InitBehavior extends AbstractBehavior
 {
   final IModel params = new AbstractReadOnlyModel() {

@Override
public Object getObject()
{

// redirect url's
map.put(roamUrl,
 RequestCycle.get().urlFor(NoIdPage.class,
 null));
map.put(loginUrl, RequestCycle.get().urlFor(new
 LoginPage()));
map.put(errorUrl, RequestCycle.get().urlFor(new
 ErrorPage()));
return map;
}

};

component.add(TextTemplateHeaderContributor.forJavaScript(
InitBehavior.class, init.js, params));
super.bind(component);
}

 ...
 }

 and in init.js

 function clientReady() {


// detect if arcot id exist
if (!IDExists(strWFUserID)) {
if (Flag) {
//
 document.getElementById('divErrPopup').style.display = 'block';

location.href = '${errorUrl}';
} else {


 location.href = '${roamUrl}';
}
} else {


location.href = '${loginUrl}';

}
 }

 this script is executed upon loading of the page. This working fine in
 firefox. im using wicket 1.3.4 i also try the latest release 1.3.5 but it
 still problem in IE(http://localhost:8080/test/undefined). I also,
 mount(new
 QueryStringUrlCodingStrategy(noid, NoIdPage.class)); again this works
 only
 in firefox but not in IE. since our client mostly IE users. i also found
 this bug https://issues.apache.org/jira/browse/WICKET-1449 ... How can i
 solve this problem? Is there a work around to this?

 Thanks a lot.
 Cheers.

 --
 View this message in context:
 http://www.nabble.com/redirect-issue-on-IE-causing-HTTP-4040-tp20124228p20124228.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/redirect-issue-on-IE-causing-HTTP-404-tp20124228p20125698.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: Update ListView using ajax

2009-09-06 Thread freak182

Hello,

i think i already put it in the webmarkupcontainer and target the
markupcontainer.


michael mosmann wrote:
 
 Am Sonntag, den 06.09.2009, 01:05 +0800 schrieb Eman Nollase:
 Hello,
 
 For no apparent reason the listview is not updating when i targeted it.
 im
 using wicket 1.4.1.
 
 The ListView ist replaced with it's childs. Therefore you can not update
 the ListView. The simple solution to this is a WebMarkupContainer around
 the ListView.
 
 mm:)
 
 -- 
 Michael Mosmann http://www.wicket-praxis.de/blog/
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Update-ListView-using-ajax-tp25310457p25317613.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: Update ListView using ajax

2009-09-06 Thread freak182

hello,

here is the codes:

final FormVoid form = new FormVoid(search);
add(form);

final TextFieldString query = new TextFieldString(query, new
PropertyModelString(this, search) );
form.add(query);

ListCustomFileDescription results = null;
final WebMarkupContainer resultcontainer = new
WebMarkupContainer(resultcontainer);
add(resultcontainer.setOutputMarkupId(true));

final ListViewCustomFileDescription files = new
ListViewCustomFileDescription(files, results)
{
@Override
protected void populateItem(ListItemCustomFileDescription item)
{
final CustomFileDescription fileDesc = item.getModelObject();
item.setModel(new 
CompoundPropertyModelCustomFileDescription(fileDesc));
item.add(new Label(name));
item.add(new Label(lastModified));
}
};
//files.setReuseItems(true);
resultcontainer.add(files);

final IndicatingAjaxButton buttquery = new 
IndicatingAjaxButton(submit,
form)
{

@Override
protected void onSubmit(AjaxRequestTarget target, Form? form)
{
final ListCustomFileDescription results =
fileSearchService.search(query.getDefaultModelObjectAsString());
System.out.println(results.size());
files.setDefaultModelObject(results);
target.addComponent(resultcontainer);
}
};
form.add(buttquery);

...and im pretty sure that i already some code in previous version of wicket
and it work..but i dont know what im missing right now. maybe worst case i
will do is to go back to old version of wicket but i want the latest
version.

Thanks a lot.
Cheers.


michael mosmann wrote:
 
 Hi,
 
 i think i already put it in the webmarkupcontainer and target the
 markupcontainer.
 
 ok.. 
 my fault.. sorry.
 
 can you post some more code.. i am not sure to see the full picture yet.
 
 For no apparent reason the listview is not updating when i targeted it.
 im
 using wicket 1.4.1.
 
 does it work without ajax?
 
 mm:)
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Update-ListView-using-ajax-tp25310457p25324461.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: Update ListView using ajax

2009-09-07 Thread freak182

Hello,

my markup:

fieldset
legendList of Files/legend
table border=1
tr
tdDate Uploaded/td
tdName/td
/tr
div 
wicket:id=resultcontainer
tr wicket:id=files
td/td
td/td
/tr
/div
/table
/fieldset

...ajax response:

first result:

?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
id=resultcontainer4 ![CDATA[div id=resultcontainer4
tr
td9/6/09 12:05 AM/td
tdThe_tree_is_on_fire.jpg/td
/tr
/div]]/component/ajax-response

next time i hit the button:

?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
id=resultcontainer4 ![CDATA[div id=resultcontainer4
tr
td9/6/09 12:59 AM/td
tdDeath_Valley_IMG_1936.jpg/td
/tr
/div]]/component/ajax-response

...seems right...but in display in firefox:

http://www.nabble.com/file/p25326096/Screenshot-Mozilla%2BFirefox.png 

thanks a lot.
cheers.


michael mosmann wrote:
 
 Hmm,..
 
 can you post your markup? this code does work with my own markup..
 
 did you use div wicket:id=resultcontainer or did you use
 wicket:container wicket:id=resultcontainer .. do you see something
 in wicket-ajax-debug panel? any error-message? any ajax-response?
 
 ...and im pretty sure that i already some code in previous version of
 wicket
 and it work..but i dont know what im missing right now. maybe worst case
 i
 will do is to go back to old version of wicket but i want the latest
 version.
 
 if this does not work with wicket 1.4.1, then it does not work with any
 wicket version.. 
 
 mm:)
 
 -- 
 Michael Mosmann - http://www.wicket-praxis.de/blog 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Update-ListView-using-ajax-tp25310457p25326096.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: Update ListView using ajax

2009-09-07 Thread freak182

Hello,

thank you for your. i already make it work. (need to adjust some markup
thing :) )

thanks a lot.
cheers.


michael mosmann wrote:
 
 Hmm,..
 
 can you post your markup? this code does work with my own markup..
 
 did you use div wicket:id=resultcontainer or did you use
 wicket:container wicket:id=resultcontainer .. do you see something
 in wicket-ajax-debug panel? any error-message? any ajax-response?
 
 ...and im pretty sure that i already some code in previous version of
 wicket
 and it work..but i dont know what im missing right now. maybe worst case
 i
 will do is to go back to old version of wicket but i want the latest
 version.
 
 if this does not work with wicket 1.4.1, then it does not work with any
 wicket version.. 
 
 mm:)
 
 -- 
 Michael Mosmann - http://www.wicket-praxis.de/blog 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Update-ListView-using-ajax-tp25310457p25326735.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: server push

2009-10-06 Thread freak182

Hello,

you check-out push-parent from wicketstuff. or you can check this out:

http://code.google.com/p/wicket-comet/

ii is a  modified version of push-parent ( for our own req.). and also comet
works on jetty and glassfish server (you need grizzly for this to work on
glassfish)


Jahid wrote:
 
 Hi,
 
 We need server push for one of our web application. Is there something
 that you can suggest? The requirement is, it should work on any server
 (Tomcat, jetty, jboss,). is there any wicket component that does
 this?
 
 I have heard about wicketstuff-push, but i also heard that it only works
 with jetty. any kind of suggestion is welcome.
 
 thanks in advance.
 
 
 //jahid
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/server-push-tp25746064p25764396.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: Wicket+JaserReport, how to start?

2009-03-27 Thread freak182

Hello,

You can checkout this site: http://code.google.com/p/wicket-jasper-ui/

Cheers.


Mellon wrote:
 
 Hello,
  I am new in Wicket+JasperReport, I have the fundamental knowledge about
 wicket and JasperReport, but Now I need to integret them. How to do it?
 How to start? I need some tutorial guide. I will look forward to hear any
 suggestions. Appreciate your help.
 
 Mellon
 

-- 
View this message in context: 
http://www.nabble.com/Wicket%2BJaserReport%2C-how-to-start--tp22738167p22741057.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: Fail to close ModalWindow on top of ModalWindow

2009-04-14 Thread freak182


I mean the modal window is not appearing inside iframe in IE7.


freak182 wrote:
 
 Hello,
 
 My problem is the ModalWindow is not appearing in IE..any resources?... 
 Is the issue already resolved? 
 
 Thanks a lot.
 Cheers.
 
 
 
 Mr Mean wrote:
 
 Could you open up an issue for this?
 
 Maurice
 
 On Wed, Apr 9, 2008 at 10:16 AM, Nili Adoram ni...@qlusters.com wrote:
 Hi all,
  I have a ModalWindow A containing a page  i.e. opened as an iframe.
  This modal opens another ModalWindow B containing a panel.
  Window B contains a simple AjaxLink that should close B.

  add(new AjaxLink(cancel) {

@Override
public void onClick(AjaxRequestTarget target) {

ModalWindow.closeCurrent(target);
}

});

  However, when I click this AjaxLink in order to close B the following
 message is displayed:
  'You can\'t close this modal window. Close the top-level modal window
 first.'

  This message is displayed since isIframe() returns true, which is
 problematic since B is not an iframe but a div.

  Is there a workaround for this issue ?

  --
  Best,
  Nili
  ===
  Nili Adoram
  GRM Team, RD, Qlusters Inc.
  nili.ado...@qlusters.com
  +972-3-6236636




  -
  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
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Fail-to-close-ModalWindow-on-top-of-ModalWindow-tp16581875p23036123.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: Fail to close ModalWindow on top of ModalWindow

2009-04-14 Thread freak182

Hello,

My problem is the ModalWindow is not appearing in IE..any resources?... 
Is the issue already resolved? 

Thanks a lot.
Cheers.



Mr Mean wrote:
 
 Could you open up an issue for this?
 
 Maurice
 
 On Wed, Apr 9, 2008 at 10:16 AM, Nili Adoram ni...@qlusters.com wrote:
 Hi all,
  I have a ModalWindow A containing a page  i.e. opened as an iframe.
  This modal opens another ModalWindow B containing a panel.
  Window B contains a simple AjaxLink that should close B.

  add(new AjaxLink(cancel) {

@Override
public void onClick(AjaxRequestTarget target) {

ModalWindow.closeCurrent(target);
}

});

  However, when I click this AjaxLink in order to close B the following
 message is displayed:
  'You can\'t close this modal window. Close the top-level modal window
 first.'

  This message is displayed since isIframe() returns true, which is
 problematic since B is not an iframe but a div.

  Is there a workaround for this issue ?

  --
  Best,
  Nili
  ===
  Nili Adoram
  GRM Team, RD, Qlusters Inc.
  nili.ado...@qlusters.com
  +972-3-6236636




  -
  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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Fail-to-close-ModalWindow-on-top-of-ModalWindow-tp16581875p23036099.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: wicket + jbpm

2009-04-29 Thread freak182

yes, that one from JBoss.


nino martinez wael wrote:
 
 this one : http://www.jboss.com/products/jbpm/ ?
 
 
 
 2009/4/29 Eman Nollase eman.noll...@gmail.com:
 Hello,

 Is there a wicket + jBPM integration? Thanks a lot. Cheers.

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

-- 
View this message in context: 
http://www.nabble.com/wicket-%2B-jbpm-tp23297799p23302609.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: wicket-jasper UI

2009-05-04 Thread freak182


you checkout this project:  http://code.google.com/p/wicket-jasper-ui/


raviJPYADAV wrote:
 
 Hi , can you please share some sample code how to integrate this api with
 our code?
 
 --Ravi
 
 freak182 wrote:
 
 Hello,
 
 I just wanna share this simple project called wicket-jasper. It is
 basically jasperreports embeded in wicket. If you wanna share your idea
 or added some features,please do so. Anyway, our company is already using
 it please see the attached files. 
 
 Thanks. Cheers
 
  http://www.nabble.com/file/p22634657/wicket-jasper.tar wicket-jasper.tar 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-jasper-UI-tp22634657p23364548.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: wicket-jBPM integration

2009-05-09 Thread freak182

Hello,

Here is my initial commit on google code:
http://code.google.com/p/wicket-jbpm/


freak182 wrote:
 
 Hello,
 
 im currently developing wicket-jbpm integration. and currently doing the
 infrastructure setup and once done i will upload it to googlecode. anyone
 wants to join the development is cordially invited.
 
 Thanks a lot.
 Cheers.
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-jBPM-integration-tp23458100p23458572.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: wicket-jBPM integration

2009-05-09 Thread freak182


i integrate the core engine and not actually the entire console just the
part of it, just a redirection of page for a particular task. the
jbpm-console is so flexible such that you dont have to program anything
(forms are auto generated) and it's built on jsf (jbpm native).

Im still thinking what the scope of this project. but now i want to design a
business process and run it using wicket as UI part.


Stefan Droog wrote:
 
 What did you exactly integrate? Did you re-write the jBPM console?
 
 Regards,
 Stefan
 
 
 Van: freak182 [eman.noll...@gmail.com]
 Verzonden: zaterdag 9 mei 2009 10:56
 Aan: users@wicket.apache.org
 Onderwerp: Re: wicket-jBPM integration
 
 Hello,
 
 Here is my initial commit on google code:
 http://code.google.com/p/wicket-jbpm/
 
 
 freak182 wrote:

 Hello,

 im currently developing wicket-jbpm integration. and currently doing the
 infrastructure setup and once done i will upload it to googlecode. anyone
 wants to join the development is cordially invited.

 Thanks a lot.
 Cheers.


 
 --
 View this message in context:
 http://www.nabble.com/wicket-jBPM-integration-tp23458100p23458572.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
 
 The information contained in this communication is confidential, intended
 solely for the use of the individual or entity to whom it is addressed and
 may be legally privileged and protected by professional secrecy. Access to
 this message by anyone else is unauthorized. If you are not the intended
 recipient, any disclosure, copying, or distribution of the message, or any
 action or omission taken by you in reliance on it is prohibited and may be
 unlawful. Please immediately contact the sender if you have received this
 message in error. This email does not constitute any commitment from
 Cordys Holding BV or any of its subsidiaries except when expressly agreed
 in a written agreement between the intended recipient and Cordys Holding
 BV or its subsidiaries. Cordys is neither liable for the proper and
 complete transmission of the information contained in this communication
 nor for any delay in its receipt. Cordys does not guarantee that the
 integrity of this communication has been maintained nor that the
 communication is free of viruses, interceptions or interference. If you
 are not the intended recipient of this communication please return the
 communication to the sender and delete and destroy all copies.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-jBPM-integration-tp23458100p23459971.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: wicket-jBPM integration

2009-05-09 Thread freak182


the scope of wicket-jBPM integration:
  minimal requirements
1. be able to route task to a corresponding wicket page.
2. be able to handle jBPM variables dynamically.
3. given the process design, minimal change(e.g change of route, adding
decision element) would not require code change.

  maximum requirement
1. be able act a jbpm console. from JSF to Wicket.


freak182 wrote:
 
 
 i integrate the core engine and not actually the entire console just the
 part of it, just a redirection of page for a particular task. the
 jbpm-console is so flexible such that you dont have to program anything
 (forms are auto generated) and it's built on jsf (jbpm native).
 
 Im still thinking what the scope of this project. but now i want to design
 a business process and run it using wicket as UI part.
 
 
 Stefan Droog wrote:
 
 What did you exactly integrate? Did you re-write the jBPM console?
 
 Regards,
 Stefan
 
 
 Van: freak182 [eman.noll...@gmail.com]
 Verzonden: zaterdag 9 mei 2009 10:56
 Aan: users@wicket.apache.org
 Onderwerp: Re: wicket-jBPM integration
 
 Hello,
 
 Here is my initial commit on google code:
 http://code.google.com/p/wicket-jbpm/
 
 
 freak182 wrote:

 Hello,

 im currently developing wicket-jbpm integration. and currently doing the
 infrastructure setup and once done i will upload it to googlecode.
 anyone
 wants to join the development is cordially invited.

 Thanks a lot.
 Cheers.


 
 --
 View this message in context:
 http://www.nabble.com/wicket-jBPM-integration-tp23458100p23458572.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
 
 The information contained in this communication is confidential, intended
 solely for the use of the individual or entity to whom it is addressed
 and may be legally privileged and protected by professional secrecy.
 Access to this message by anyone else is unauthorized. If you are not the
 intended recipient, any disclosure, copying, or distribution of the
 message, or any action or omission taken by you in reliance on it is
 prohibited and may be unlawful. Please immediately contact the sender if
 you have received this message in error. This email does not constitute
 any commitment from Cordys Holding BV or any of its subsidiaries except
 when expressly agreed in a written agreement between the intended
 recipient and Cordys Holding BV or its subsidiaries. Cordys is neither
 liable for the proper and complete transmission of the information
 contained in this communication nor for any delay in its receipt. Cordys
 does not guarantee that the integrity of this communication has been
 maintained nor that the communication is free of viruses, interceptions
 or interference. If you are not the intended recipient of this
 communication please return the communication to the sender and delete
 and destroy all copies.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-jBPM-integration-tp23458100p23467244.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: ModalWindow not appearing in IE

2009-05-14 Thread freak182


!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;

i just add that in my basepage to works on IE7...i couldn't have imagine
that this line of code saves me a lot.


NHSoft.YHW wrote:
 
 ModalWindow can not appear in IE 6.x, but Firefox 3.x has no problem.
 In IE 6.x, when click show ModalWindow link, the server side code invoke,
 but the browser not show the modalwindow.  ajax debug message detail as
 follow:
 
 INFO: focus removed from wicket-generated-id-120
 INFO: focus set on showModal233
 INFO: 
 INFO: Initiating Ajax GET request on
 ?wicket:interface=:2:homeTabs:panel:shopDetailPanel:wmcModalWindow:showModal2::IBehaviorListener:0:-1random=0.702769703404648
 INFO: Invoking pre-call handler(s)...
 INFO: Received ajax response (6568 characters)
 INFO: 
 ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution
 encoding=wicket1 ![CDATA[head
 xmlns:wicket=http://wicket.apache.org;script type=text/javascript
 src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script
  
 script type=text/javascript
 src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script
  
 script type=text/javascript
 src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script
  
 script type=text/javascript
 id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
 wicketAjaxDebugEnable=true;
 /*--]^]^*//script
 
 script type=text/javascript
 src=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js/script
  
 link rel=stylesheet type=text/css
 href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
 / 
 script type=text/javascript
 src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta.js/script
  
 script type=text/javascript !--/*--![CDATA[/*!--*/
 var e = Wicket.$('date44Dp'); if (e != null  typeof(e.parentNode) !=
 'undefined'  typeof(e.parentNode.parentNode != 'undefined'))
 e.parentNode.parentNode.removeChild(e.parentNode);
 /*--]^]^*//script
 
 /head]]/header-contributioncomponent id=modal231 ![CDATA[div
 id=modal231 style=display:none
 div id=content32
 div style=margin: 1em
 This is panel content! 
 p
 Date text field to demonstrate AJAX header contribution 
   
 input id=date44
 name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:date
 value= type=text size=8/
 nbsp;
 resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif 
 input
 name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:hours
 value= type=text size=2/nbsp;:
 input
 name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:minutes
 value= type=text size=2/
 select
 name=homeTabs:panel:shopDetailPanel:wmcModalWindow:modal2:content:dateTimeField:amOrPmChoice
 option selected=selected value=0AM/option
 option value=1PM/option
 /select
   
 
 /p
 /div
 /div
 /div]]/componentevaluate encoding=wicket1![CDATA[/*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the License); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
  *
  *  http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 if (typeof wicketCalendarInits == 'undefined') {
 wicketCalendarInits = new Array();
 wicketCalendarInitFinished = false;
 }
 
 initdate44 = function() {
 Wicket.DateTime.init( {
 widgetId: date44,
 componentId: date44,
 calendarInit: {
 MONTHS_SHORT:[\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708]^,START_WEEKDAY:0,MONTHS_LONG:[\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708]^,iframe:false,WEEKDAYS_MEDIUM:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^,WEEKDAYS_1CHAR:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^,WEEKDAYS_LONG:[\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D]^,close:true,WEEKDAYS_SHORT:[\u65E5,\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D]^
 

Re: Palette problem

2009-05-14 Thread freak182

Hello,

I just found the problem. I modified the palette.js.

Wicket.Palette.update

if( i+1  selected.lenght)
   ...

changed to:

if ( i  selected.lenght)

..this works fine but we are testing it.


James Carman-3 wrote:
 
 What type of values are you using?
 
 What type of collection are you putting them in?
 
 On Thu, May 14, 2009 at 2:39 AM, Eman Nollase eman.noll...@gmail.com
 wrote:
 Hello,

 I have a problem about palette. here is the scenario:

 if there is already values in selected side and when I add values from
 available side there is only n-1 values get. If there is currently 2
 values
 in the selected side then i add 2 values from available side, i only get
 3
 values. The last one is not included in the result. Any idea?

 Thanks a lot.
 Cheers.

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

-- 
View this message in context: 
http://www.nabble.com/Palette-problem-tp23535231p23541749.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: Palette problem

2009-05-14 Thread freak182


i modified the JS that comes with wicket and fixed my problem.


James Carman-3 wrote:
 
 You're saying you modified the JS that comes with Wicket and it caused
 the problem or you modified it and it fixed it?
 
 On Thu, May 14, 2009 at 10:27 AM, freak182 eman.noll...@gmail.com wrote:

 Hello,

 I just found the problem. I modified the palette.js.

 Wicket.Palette.update

 if( i+1  selected.lenght)
   ...

 changed to:

 if ( i  selected.lenght)

 ..this works fine but we are testing it.


 James Carman-3 wrote:

 What type of values are you using?

 What type of collection are you putting them in?

 On Thu, May 14, 2009 at 2:39 AM, Eman Nollase eman.noll...@gmail.com
 wrote:
 Hello,

 I have a problem about palette. here is the scenario:

 if there is already values in selected side and when I add values from
 available side there is only n-1 values get. If there is currently 2
 values
 in the selected side then i add 2 values from available side, i only
 get
 3
 values. The last one is not included in the result. Any idea?

 Thanks a lot.
 Cheers.


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




 --
 View this message in context:
 http://www.nabble.com/Palette-problem-tp23535231p23541749.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Palette-problem-tp23535231p23550012.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: Palette problem

2009-05-14 Thread freak182



What i do is extends the Palette and override the renderHead to implement
the mdified palette.js.


James Carman-3 wrote:
 
 You're saying you modified the JS that comes with Wicket and it caused
 the problem or you modified it and it fixed it?
 
 On Thu, May 14, 2009 at 10:27 AM, freak182 eman.noll...@gmail.com wrote:

 Hello,

 I just found the problem. I modified the palette.js.

 Wicket.Palette.update

 if( i+1  selected.lenght)
   ...

 changed to:

 if ( i  selected.lenght)

 ..this works fine but we are testing it.


 James Carman-3 wrote:

 What type of values are you using?

 What type of collection are you putting them in?

 On Thu, May 14, 2009 at 2:39 AM, Eman Nollase eman.noll...@gmail.com
 wrote:
 Hello,

 I have a problem about palette. here is the scenario:

 if there is already values in selected side and when I add values from
 available side there is only n-1 values get. If there is currently 2
 values
 in the selected side then i add 2 values from available side, i only
 get
 3
 values. The last one is not included in the result. Any idea?

 Thanks a lot.
 Cheers.


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




 --
 View this message in context:
 http://www.nabble.com/Palette-problem-tp23535231p23541749.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Palette-problem-tp23535231p23550139.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: Spring Security's method security and Wicket

2009-05-14 Thread freak182

Hi James,

Can you share your wicket-spring-security project or there is already in
wicketstuff?

Thanks a lot.
Cheers.




James Carman-3 wrote:
 
 On Thu, May 14, 2009 at 1:38 PM, Kent Larsson kent.lars...@gmail.com
 wrote:
 Hi James,

 Thank you for example! Although I can't find any secured methods in
 there. Not in your beans.xml and not by grepping for Secured on all
 your files. So correct me if I'm wrong, but I don't think you are
 using the method security option in Spring Security? In any case I'm
 greatful for you showing me how you solved the integration and I'll be
 looking more into it soon.

 My current problem is with method security, while URL security works.
 
 You're very welcome.  Sorry I didn't fix the problem in the code (I
 should do that while I'm thinking about it), but it's not that
 difficult to catch AuthenticationException and return false.  You're
 correct, I am not using method-level security.  I can imagine that you
 can try a custom error catcher to redirect to your login page if a
 spring security exception is found (or tell them they're not allowed
 to do what they tried to do)?  I'd have to play with it.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Spring-Security%27s-method-security-and-Wicket-tp23411667p23550461.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: Grizzly + Wicket integration

2009-06-01 Thread freak182


Actually, we had a requirements like sending a request to a remote pc.Just
like wicket-push-examples but my colleague said it would be better if
grizzly use.

Thanks a lot.
Cheers.


Scott Swank wrote:
 
 Not that I'm aware of.  What specifically do you want to do with nio?
 
 Scott
 
 
 On Mon, Jun 1, 2009 at 7:01 AM, Eman Nollase eman.noll...@gmail.com
 wrote:
 Hello,

 Is there a Wicket + Grizzly integration?

 Thanks a lot.
 Cheers.

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

-- 
View this message in context: 
http://www.nabble.com/Grizzly-%2B-Wicket-integration-tp23815476p23824515.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: AW: inserting urls in script variables

2009-06-10 Thread freak182

Martjin already say that:


so you should call:

urlFor(dlink, ILinkListener.INTERFACE) 

not dlink.urlFor.


Bas Vroling wrote:
 
 Thanks for the extensive feedback, but urlFor() does not accept that  
 as input...
 I tried being smart and did this (please correct me if this is  
 nonsense):
 
 add(new WebMarkupContainer(filename).add(new SimpleAttributeModifier(
   value, 
 dlink.urlFor(ILinkListener.INTERFACE;
 
 when I access the pages it gives the following error:
 
 java.lang.IllegalStateException: No Page found for component  
 [MarkupContainer [Component id = downloadMsf]]
   at org.apache.wicket.Component.getPage(Component.java:1755)
 
 although the component is added to the panel. Here's the complete code:
 
 public JalViewPanel(String id, DefaultMutableTreeNode treeNode) {
   super(id);
   activeNode = treeNode;
 
   DownloadLink dlink = new DownloadLink(downloadMsf,  
 currentJalviewAlignment) {
   @Override
   public void onClick() {
   String alignment = (String) 
 currentJalviewAlignment.getObject();
   byte[] bytes = alignment.getBytes();
   getRequestCycle().setRequestTarget(new  
 AlignmentRequestTarget(bytes, alignment.fasta));
   }
   };
 
   add(dlink);
   add(new WebMarkupContainer(filename).add(new  
 SimpleAttributeModifier(
   value, 
 dlink.urlFor(ILinkListener.INTERFACE;
   }
 
 On 10 Jun, at 12:10, Martijn Dashorst wrote:
 
 You could always look at the source for how Link does it: getURL()  
 calls:

  /**
   * Gets the url to use for this link.
   *
   * @return The URL that this link links to
   */
  protected CharSequence getURL()
  {
  return urlFor(ILinkListener.INTERFACE);
  }

 which calls:

 Component#urlFor(this, ILinkListener.INTERFACE)

 so you should call:

 urlFor(dlink, ILinkListener.INTERFACE)

 Martijn

 On Wed, Jun 10, 2009 at 11:59 AM, Bas Vrolingbvrol...@cmbi.ru.nl  
 wrote:
 I'm feeling not really smart here, but that doesn't work. urlFor  
 needs
 something like a irequesttarget. I tried something like this:

 add(new WebMarkupContainer(filename).add(new  
 SimpleAttributeModifier(
value,
 urlFor(dlink.getRequestCycle().getRequestTarget();

 but that gives me the url of the page, not the downloadlink.

 On 10 Jun, at 11:46, Martijn Dashorst wrote:

 urlFor(dlink)?

 Martijn

 On Wed, Jun 10, 2009 at 11:27 AM, Bas Vrolingbvrol...@cmbi.ru.nl  
 wrote:

 Ok, that is starting to work, thanks! Now I only need to get the  
 url in
 the
 simpleAttributeModifier. This doesn't accept models but needs a
 CharSequence, which does seem logical but how do I get the actual  
 URL of
 the
 dlink model in there?

 On 10 Jun, at 10:48, Martijn Dashorst wrote:

 

 add(new WebMarkupContainer(filename).add(new
 SimpleAttributeModifier(value, ...)));

 On Wed, Jun 10, 2009 at 9:57 AM, Bas  
 Vrolingbvrol...@cmbi.ru.nl wrote:

 If I set setRenderBodyOnly(true) it doesn't work either, and  
 then it
 shouldn't complain anymore. (wicket is the one complaining, not  
 the
 applet
 btw)



 On 10 Jun, at 09:53, Dorothée Giernoth wrote:

 b/c you can't put a tag into a tag ... as it says: it is a  
 value and
 it
 needs a value, not a tag ... xml doesn't work that way


 -Ursprüngliche Nachricht-
 Von: Bas Vroling [mailto:bvrol...@cmbi.ru.nl]
 Gesendet: Mittwoch, 10. Juni 2009 09:41
 An: users@wicket.apache.org
 Betreff: inserting urls in script variables

 Hi guys,

 I'm trying to insert a download url in a piece of template  
 code. The
 template part looks like this:

 wicket:panel
  
  applet code=jalview.bin.JalviewLite width=100%  
 height=750
 archive=jalviewApplet.jar
  
  
  
  /applet
 /wicket:panel

 The applet show a multiple sequence alignment that I would  
 like to be
 retrieved from wicket.
 In my java code I have created a link that downloads the file.  
 This
 works fine if I show the link on a page and click on it:

  DownloadLink dlink = new DownloadLink(downloadMsf,
 currentJalviewAlignment) {
  @Override
  public void onClick() {
  String alignment = (String)
 currentJalviewAlignment.getObject();
  byte[] bytes = alignment.getBytes();
  getRequestCycle().setRequestTarget(new
 AlignmentRequestTarget(bytes, alignment + .fasta));
  }
  };

 When I try to do the obvious, replace the {{URL_HERE}} part  
 with  wicket:id=downloadMsf  it complains about non-valid  
 XML and
 such.

 Any ideas?

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

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-13 Thread freak182

Hello,

I checkout the latest wicket-push in wicketstuff but unfortunately this was
built in 1.4. How can I build for 1.3.x wicket? Because our application is
using 1.3.x and I cannot tell them to migrate to 1.4 since the development
has already started.

Thanks a lot.
Cheers.


Rodolfo Hansen wrote:
 
 On Mon, Apr 20, 2009 at 6:26 AM, pmarrone paolo.marr...@gmail.com wrote:
 

 Hi Rodolfo,
 I'm trying to deploy the wicketstuff-push example on a Glassfish server
 V3,
 but without success.
 Can you give some information about how to use your wicketstuff-push
 implementation outside Jetty?
 
 
 For Glassfish there are a couple of configurations you need to set in the
 glassfish domain.
 
 Also, you might have to write your own servlet, as in this post:
 
 http://weblogs.java.net/blog/jfarcand/archive/2006/10/writting_a_come.html
 
 
 I know that Glassfish has support for cometd, so it should be possible.
 I propose to insert in the example package this kind of information,
 because
 jetty is not normally adopted in real production environments.
 
 
 Yes, if you can, can you write the Glassfish Servlet for cometd
 integration
 and post it as a patch, or send it to me directly?
 
 rhan...@kindleit.net
 
 
 

 Thank you very much for your kind response.
 Regards
 Paolo



 Rodolfo Hansen-2 wrote:
 
  Hi, a new version of wicketstuff-push was moved to the wicketstuff-core
  group of projects, as push-parent (as was specified in the wiki)
 
  A couple of new things were done:
 
  It is no longer compatible with java 1.4, is built for wicket 1.4 and
  requires jetty 6.1.14.
  The dependencies on dojo have been reduced even further, so this
 package
  is
  basically just a cometd client/server project for wicket.
  The RemoveListener is now working and is extended with a new type of
  WicketRemoveListener that allows access to the Wicket Application
  Singleton
  and the session that registered the singleton (i thought of a couple of
  ways
  to register them, and decided to choose the one present in the code for
  it)
 
  Please let me know of any suggestions, ideas for the proj.
 
 

 --
 View this message in context:
 http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p23134109.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


 
 
 -- 
 Rodolfo Hansen
 CEO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Office: 1 (809) 732-5200
 Mobile: 1 (809) 299-7332
 
 

-- 
View this message in context: 
http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p24457098.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: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-13 Thread freak182

Hello,

Although we use java 1.5, the wicket version we are gonna use it wicket
1.3.6 ..the problem from the latest branch is the MetaDataKey is now
generified becuase it is built against 1.4. I found out that in 1.3.x branch
has same wicket-push codebase but the metadatakey is not using generics. i
just replace the files that contains metadatakey class that use generics. :)

And i tested and it work. ;))

Thanks a lot.
Cheers.



Rodolfo Hansen wrote:
 
 Hi,
 
 You have two options:
 
1. use a previous version of wicketstuff-push,
2. or help out with branching the current code back to 1.3.x
 
 Right now, the code requres java 1.5, so if your proyect requires java 1.4
 then I recomend using a previous version.
 
 the old wicket 1.3, java 1.4 branch is here:
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicketstuff-push/
 
 
 
 On Mon, Jul 13, 2009 at 3:10 AM, freak182 eman.noll...@gmail.com wrote:
 

 Hello,

 I checkout the latest wicket-push in wicketstuff but unfortunately this
 was
 built in 1.4. How can I build for 1.3.x wicket? Because our application
 is
 using 1.3.x and I cannot tell them to migrate to 1.4 since the
 development
 has already started.

 Thanks a lot.
 Cheers.


 Rodolfo Hansen wrote:
 
  On Mon, Apr 20, 2009 at 6:26 AM, pmarrone paolo.marr...@gmail.com
 wrote:
 
 
  Hi Rodolfo,
  I'm trying to deploy the wicketstuff-push example on a Glassfish
 server
  V3,
  but without success.
  Can you give some information about how to use your wicketstuff-push
  implementation outside Jetty?
 
 
  For Glassfish there are a couple of configurations you need to set in
 the
  glassfish domain.
 
  Also, you might have to write your own servlet, as in this post:
 
 
 http://weblogs.java.net/blog/jfarcand/archive/2006/10/writting_a_come.html
 
 
  I know that Glassfish has support for cometd, so it should be
 possible.
  I propose to insert in the example package this kind of information,
  because
  jetty is not normally adopted in real production environments.
 
 
  Yes, if you can, can you write the Glassfish Servlet for cometd
  integration
  and post it as a patch, or send it to me directly?
 
  rhan...@kindleit.net
 
 
 
 
  Thank you very much for your kind response.
  Regards
  Paolo
 
 
 
  Rodolfo Hansen-2 wrote:
  
   Hi, a new version of wicketstuff-push was moved to the
 wicketstuff-core
   group of projects, as push-parent (as was specified in the wiki)
  
   A couple of new things were done:
  
   It is no longer compatible with java 1.4, is built for wicket 1.4
 and
   requires jetty 6.1.14.
   The dependencies on dojo have been reduced even further, so this
  package
   is
   basically just a cometd client/server project for wicket.
   The RemoveListener is now working and is extended with a new type of
   WicketRemoveListener that allows access to the Wicket Application
   Singleton
   and the session that registered the singleton (i thought of a couple
 of
   ways
   to register them, and decided to choose the one present in the code
 for
   it)
  
   Please let me know of any suggestions, ideas for the proj.
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p23134109.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
 
 
 
 
  --
  Rodolfo Hansen
  CEO, KindleIT Software Development
  Email: rhan...@kindleit.net
  Office: 1 (809) 732-5200
  Mobile: 1 (809) 299-7332
 
 

 --
 View this message in context:
 http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p24457098.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


 
 
 -- 
 Rodolfo Hansen
 CEO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Office: 1 (809) 732-5200
 Mobile: 1 (809) 299-7332
 
 

-- 
View this message in context: 
http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p24464690.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: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-07-16 Thread freak182

Hello,

Is there a patch/servlet to run cometd in glassfish? because im having
trouble to run push-examples on glassfish as it will be used in production.

Thanks a lot.
Cheers.


Rodolfo Hansen wrote:
 
 On Mon, Apr 20, 2009 at 6:26 AM, pmarrone paolo.marr...@gmail.com wrote:
 

 Hi Rodolfo,
 I'm trying to deploy the wicketstuff-push example on a Glassfish server
 V3,
 but without success.
 Can you give some information about how to use your wicketstuff-push
 implementation outside Jetty?
 
 
 For Glassfish there are a couple of configurations you need to set in the
 glassfish domain.
 
 Also, you might have to write your own servlet, as in this post:
 
 http://weblogs.java.net/blog/jfarcand/archive/2006/10/writting_a_come.html
 
 
 I know that Glassfish has support for cometd, so it should be possible.
 I propose to insert in the example package this kind of information,
 because
 jetty is not normally adopted in real production environments.
 
 
 Yes, if you can, can you write the Glassfish Servlet for cometd
 integration
 and post it as a patch, or send it to me directly?
 
 rhan...@kindleit.net
 
 
 

 Thank you very much for your kind response.
 Regards
 Paolo



 Rodolfo Hansen-2 wrote:
 
  Hi, a new version of wicketstuff-push was moved to the wicketstuff-core
  group of projects, as push-parent (as was specified in the wiki)
 
  A couple of new things were done:
 
  It is no longer compatible with java 1.4, is built for wicket 1.4 and
  requires jetty 6.1.14.
  The dependencies on dojo have been reduced even further, so this
 package
  is
  basically just a cometd client/server project for wicket.
  The RemoveListener is now working and is extended with a new type of
  WicketRemoveListener that allows access to the Wicket Application
  Singleton
  and the session that registered the singleton (i thought of a couple of
  ways
  to register them, and decided to choose the one present in the code for
  it)
 
  Please let me know of any suggestions, ideas for the proj.
 
 

 --
 View this message in context:
 http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p23134109.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


 
 
 -- 
 Rodolfo Hansen
 CEO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Office: 1 (809) 732-5200
 Mobile: 1 (809) 299-7332
 
 

-- 
View this message in context: 
http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p24512870.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



Date should return null

2007-11-26 Thread freak182

When im working with datefield,when i do not put a date to a
textfield/datefield input from a datepicker it returns the current
date/time.Now my problem is,I want it to return NULL when there is no or
blank input from a textfield.Thanks a lot
-- 
View this message in context: 
http://www.nabble.com/Date-should-return-null-tf4879813.html#a13964813
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: Help for custom textfield component w/ javascript

2007-12-13 Thread freak182

Yes.i have a webpage and there is a form there the that access it. like the
following code snippet:
class TestPage extend Webpage {
public TestPage(){
Form form = new StudentForm(std,new CompoundPropertyModel(new
Student()));
  }

class StudentForm extends Form {
public StudentForm(String id,IModel model){
   super(id,model);
   add(new AtmKeypadField(stdid);
   }
}
..stdid is a property of Student and it is assigned to parent
component..Cheers...Tnx a lot.

Johan Compagner wrote:
 
 So stdid is a property of a compountmodel that is assigend to a parent
 of that component?
 
 On 12/13/07, freak182 [EMAIL PROTECTED] wrote:

 Hello,
  I have a problem.I'm creating a custom component and it happens to be a
 textfield.My problem start when i follow the DatePicker component
 structure.The datepicker structures works well and so the component i
 made
 with some tweak of course.But when i bind it or implement to the pages it
 gives me null.I have attached my code for clarity and better understand
 my
 problem.  http://www.nabble.com/file/p14310802/AtmKeypad.txt
 AtmKeypad.txt
 http://www.nabble.com/file/p14310802/AtmKeypadField.html
 AtmKeypadField.html
 http://www.nabble.com/file/p14310802/AtmKeypadField.txt
 AtmKeypadField.txt

 ...when i do this..
   add(new AtmKeypadField(stdid);

 I get null value for that property..Cheers..Tnx a lot.
 --
 View this message in context:
 http://www.nabble.com/Help-for-custom-textfield-component-w--javascript-tp14310802p14310802.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Help-for-custom-textfield-component-w--javascript-tp14310802p14312709.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: Help for custom textfield component w/ javascript

2007-12-19 Thread freak182

I already make some debugging but i have no luck to get the value.Anyways,
thanks for the reply...i will just look for other way to do the trick.


Johan Compagner wrote:
 
 That should work fine then.
 The field should in initModel find the compound and then get the stdid
 property of that.
 Debug it a bit better or make a quickstar
 
 On 12/13/07, freak182 [EMAIL PROTECTED] wrote:

 Yes.i have a webpage and there is a form there the that access it. like
 the
 following code snippet:
 class TestPage extend Webpage {
 public TestPage(){
 Form form = new StudentForm(std,new CompoundPropertyModel(new
 Student()));
   }

 class StudentForm extends Form {
 public StudentForm(String id,IModel model){
super(id,model);
add(new AtmKeypadField(stdid);
}
 }
 ..stdid is a property of Student and it is assigned to parent
 component..Cheers...Tnx a lot.

 Johan Compagner wrote:
 
  So stdid is a property of a compountmodel that is assigend to a parent
  of that component?
 
  On 12/13/07, freak182 [EMAIL PROTECTED] wrote:
 
  Hello,
   I have a problem.I'm creating a custom component and it happens to be
 a
  textfield.My problem start when i follow the DatePicker component
  structure.The datepicker structures works well and so the component i
  made
  with some tweak of course.But when i bind it or implement to the pages
 it
  gives me null.I have attached my code for clarity and better
 understand
  my
  problem.  http://www.nabble.com/file/p14310802/AtmKeypad.txt
  AtmKeypad.txt
  http://www.nabble.com/file/p14310802/AtmKeypadField.html
  AtmKeypadField.html
  http://www.nabble.com/file/p14310802/AtmKeypadField.txt
  AtmKeypadField.txt
 
  ...when i do this..
add(new AtmKeypadField(stdid);
 
  I get null value for that property..Cheers..Tnx a lot.
  --
  View this message in context:
 
 http://www.nabble.com/Help-for-custom-textfield-component-w--javascript-tp14310802p14310802.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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Help-for-custom-textfield-component-w--javascript-tp14310802p14312709.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Help-for-custom-textfield-component-w--javascript-tp14310802p14413077.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]



annotated class

2008-02-14 Thread freak182

Hello,
Im developing an app using hibernate annotations.My problem is when i
configure my appContext.xml the annotated class cannot be found. here is the
code snippet of appContext.xml found in WEB-INF/config.

!--  Session factory bean for Hibernate --
bean

class=org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean
id=sessionFactory
property name=dataSource ref=dataSource/property
property name=hibernateProperties
props
prop key=hibernate.dialect
org.hibernate.dialect.MySQL5Dialect
/prop
prop key=hibernate.cache.provider_class
org.hibernate.cache.OSCacheProvider
/prop
!--prop 
key=hibernate.show_sqltrue/prop--
prop 
key=hibernate.c3p0.acquire_increment2/prop
prop 
key=hibernate.c3p0.idle_test_period300/prop
prop key=hibernate.c3p0.max_size100/prop
prop key=hibernate.connection.release_mode
after_statement
/prop
prop key=hibernate.c3p0.min_size5/prop
prop key=hibernate.c3p0.preferredTestQuery
select 1
/prop
prop 
key=hibernate.c3p0.testConnectionOnCheckout
true
/prop
prop key=hibernate.hbm2ddl.autoupdate/prop
prop

key=hibernate.bytecode.use_reflection_optimizer
true
/prop
!--prop 
key=hibernate.format_sqltrue/prop--
/props
/property
property name=annotatedClasses  
list
valuecom.test.server.model.Test/value
valuecom.test.server.model.Test2/value
/list
/property
property name=annotatedPackages
list
valuecom.test.server/value
/list
/property
/bean

My question is, the appContext.xml should be put in the classpath or
/WEB-INF/config ?is there is difference between the two? Any idea.
Thanks a lot.
Cheers
-- 
View this message in context: 
http://www.nabble.com/annotated-class-tp15476390p15476390.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: annotated class

2008-02-18 Thread freak182

Hello,
Thank you guys for the reply...I finally got to work...i have same
configuration but there is one jar file not imported by the maven
tool...that might be the problem bcoz when i removed it, it run
smoothly..Thanks a lot..anyway, i have a copy of Wicket in Action MEAP to
guide me :)

Cheers...


Nino.Martinez wrote:
 
 Do you use maven to build with?
 
 valuecom.test.server.model.Test/value
 valuecom.test.server.model.Test2/value
 
 
 
 freak182 wrote:
 Hello,
 Im developing an app using hibernate annotations.My problem is when i
 configure my appContext.xml the annotated class cannot be found. here is
 the
 code snippet of appContext.xml found in WEB-INF/config.

 !--  Session factory bean for Hibernate --
  bean
  
 class=org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean
  id=sessionFactory
  property name=dataSource ref=dataSource/property
  property name=hibernateProperties
  props
  prop key=hibernate.dialect
  org.hibernate.dialect.MySQL5Dialect
  /prop
  prop key=hibernate.cache.provider_class
  org.hibernate.cache.OSCacheProvider
  /prop
  !--prop 
 key=hibernate.show_sqltrue/prop--
  prop 
 key=hibernate.c3p0.acquire_increment2/prop
  prop 
 key=hibernate.c3p0.idle_test_period300/prop
  prop key=hibernate.c3p0.max_size100/prop
  prop key=hibernate.connection.release_mode
  after_statement
  /prop
  prop key=hibernate.c3p0.min_size5/prop
  prop key=hibernate.c3p0.preferredTestQuery
  select 1
  /prop
  prop 
 key=hibernate.c3p0.testConnectionOnCheckout
  true
  /prop
  prop key=hibernate.hbm2ddl.autoupdate/prop
  prop
  
 key=hibernate.bytecode.use_reflection_optimizer
  true
  /prop
  !--prop 
 key=hibernate.format_sqltrue/prop--
  /props
  /property
  property name=annotatedClasses  
  list
  valuecom.test.server.model.Test/value
  valuecom.test.server.model.Test2/value
  /list
  /property
  property name=annotatedPackages
  list
  valuecom.test.server/value
  /list
  /property
  /bean

 My question is, the appContext.xml should be put in the classpath or
 /WEB-INF/config ?is there is difference between the two? Any idea.
 Thanks a lot.
 Cheers
   
 
 -- 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/annotated-class-tp15476390p15542017.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]



remember last visited page

2008-02-28 Thread freak182

Hello,
Is there a way to remember the last page i visited after i lose the session.
What i mean that for example if im going to checkout but i forgot to login
first, When i click checkout button, it will redirect me to the login page
first then when authenticated it will go directly to checkout page. Any
codes will help :)

Thanks a lot.

Cheers.
-- 
View this message in context: 
http://www.nabble.com/remember-last-visited-page-tp15733923p15733923.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]



Clearing Form inputs

2008-03-27 Thread freak182

Hello,
My Problem is very simple but it gives me headache. I use form.clearInput();
inside the IndicatingAjaxButton onSubmit but it did not clears the inputs
from the textfields.Any idea how to do this?im using wicket 1.3.1. Thanks a
lot.

Cheers
-- 
View this message in context: 
http://www.nabble.com/Clearing-Form-inputs-tp16343705p16343705.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: bypass required field during form processing

2008-03-27 Thread freak182

Nice idea, but i dont know how to implement it. Validator or Behavior? any
codes..thanks a lot..cheers


Martin Makundi wrote:
 
 Ofcourse this does not work if javascript is disabled.
 
 I wonder if it is possible to switch the required fields in a
 validator (one which can be configured to run before the required
 checks).
 
 **
 Martin
 
 2008/3/28, Martin Makundi [EMAIL PROTECTED]:
 You could use onchange events to attach ajax behavior that changes the
  required fields?

  **
  Martin

  2008/3/28, freak182 [EMAIL PROTECTED]:

 
Hello,
I have a problem about bypassing some textfields during form
 process.I know
how bypass form processing through adding a method to
button.setDefaultFormProcessing(false);. Now my problem is to bypass
 only 1
or 3 requiredtextfields during form processing because what im
 concerned is
only the value of radiogroup attach to the form...e.g.. i have to
 REMOVE
only the radio button which is selected in the form, thats means no
 more
inputs needed.Of course, when i have to add items in listview i
 should
validate if there is value in textfield which required...Thanks a
lot..Cheers.
  
   --
View this message in context:
 http://www.nabble.com/bypass-required-field-during-form-processing-tp16345749p16345749.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/bypass-required-field-during-form-processing-tp16345749p16346215.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: bypass required field during form processing

2008-03-28 Thread freak182

Thanks Igor. It worked for me. Nwei, for reference here is my code snippet:
final RadioGroup rgrp = new RadioGroup(rGrp, new Model()){
@Override
protected boolean wantOnSelectionChangedNotifications() 
{
// TODO Auto-generated method stub
return true;
}
};
...
rgrp.add(wc);
form.add(rgrp);

final IndicatingAjaxButton rmvDeno = new IndicatingAjaxButton(rmvDen,
form){
@Override
protected void onSubmit(AjaxRequestTarget target, Form 
form) {
final Den den = (Den) rgrp.getModelObject();
getService().delete(den);
target.addComponent(wc);
}
};
rmvDeno.setDefaultFormProcessing(false);
form.add(rmvDeno);

Even if its in form it bypasses the validation and only get the selected
radio buttons values. I think this also applicable to checkgroup? :)


igor.vaynberg wrote:
 
 add(new RadioGroup(...) { protected
 wantOnSelectionChangedNotifications() { return true; }}
 
 will make it invoke RadioGroup.onSelectionChanged anytime a selection
 changes
 
 -igor
 
 
 On Thu, Mar 27, 2008 at 10:48 PM, freak182 [EMAIL PROTECTED] wrote:

  Nice idea, but i dont know how to implement it. Validator or Behavior?
 any
  codes..thanks a lot..cheers




  Martin Makundi wrote:
  
   Ofcourse this does not work if javascript is disabled.
  
   I wonder if it is possible to switch the required fields in a
   validator (one which can be configured to run before the required
   checks).
  
   **
   Martin
  
   2008/3/28, Martin Makundi [EMAIL PROTECTED]:
   You could use onchange events to attach ajax behavior that changes
 the
required fields?
  
**
Martin
  
2008/3/28, freak182 [EMAIL PROTECTED]:
  
   
  Hello,
  I have a problem about bypassing some textfields during form
   process.I know
  how bypass form processing through adding a method to
  button.setDefaultFormProcessing(false);. Now my problem is to
 bypass
   only 1
  or 3 requiredtextfields during form processing because what im
   concerned is
  only the value of radiogroup attach to the form...e.g.. i have to
   REMOVE
  only the radio button which is selected in the form, thats means
 no
   more
  inputs needed.Of course, when i have to add items in listview i
   should
  validate if there is value in textfield which required...Thanks a
  lot..Cheers.

 --
  View this message in context:
  
 http://www.nabble.com/bypass-required-field-during-form-processing-tp16345749p16345749.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]
  
  
  

  --
  View this message in context:
 http://www.nabble.com/bypass-required-field-during-form-processing-tp16345749p16346215.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/bypass-required-field-during-form-processing-tp16345749p16347640.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]



How to capture not BookmarkablePage

2008-04-01 Thread freak182

Hello,

1. My problem is how to capture not bookmarkable page? (I already see the
wicket-example on how to capture bookmarkable page)
2. All data i put in the textfields values/radio selected/checkboxes
selected/list will be captured also? (of course in a form of html)
3. For example if i have a constructor page w/ parameters, is there a way to
capture the page? 
 e.g
 public TestPage(){ nothing to do here and no wicket codes }

 public TestPage(List list,Page prevPage){ so many logic here }

 Thanks a lot...Cheers.
-- 
View this message in context: 
http://www.nabble.com/How-to-capture-not-BookmarkablePage-tp16434693p16434693.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: Make a Ajax button have a confirm dialog

2008-04-01 Thread freak182

You could add a behavior... e.g a confirmbehavior for your needs :) 

Pinger wrote:
 
 That is all well and good, but it does not 
 
 Do Stuff 
 
 now after i hit ok
 
 djo.mos wrote:
 
 Hi,
 
 Pinger wrote:
 
 I want to get a Yes/No confirm dialog, so I only Do Stuff if they say
 yes..
 
 
 What kind of confirmation ? Javascript ? Html ?
 for the first, you could use this
 
 ajaxButton.add(new SimpleAttributeModifier(onclick, return
 confirm('Delete ?');));
 
 Cheers
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Make-a-Ajax-button-have-a-confirm-dialog-tp16425091p16435223.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: Make a Ajax button have a confirm dialog

2008-04-01 Thread freak182

You need to extend AbstractBehavior of course and add some javascript to do
the trick...you can use javascript already available or you can customise to
yuorself..im using jquery..you can google it :) 



Pinger wrote:
 
 That would be sweet.. how do I do that? Sorry I saw one example for that
 for the button but I could not get that could not get it working for the
 ajax button. If I can get this to work, I was going to see if the
 developers want it for the release; I think it is a very common behavior
 that many people would use.
 
 
 
 
 freak182 wrote:
 
 You could add a behavior... e.g a confirmbehavior for your needs :) 
 
 Pinger wrote:
 
 That is all well and good, but it does not 
 
 Do Stuff 
 
 now after i hit ok
 
 djo.mos wrote:
 
 Hi,
 
 Pinger wrote:
 
 I want to get a Yes/No confirm dialog, so I only Do Stuff if they
 say yes..
 
 
 What kind of confirmation ? Javascript ? Html ?
 for the first, you could use this
 
 ajaxButton.add(new SimpleAttributeModifier(onclick, return
 confirm('Delete ?');));
 
 Cheers
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Make-a-Ajax-button-have-a-confirm-dialog-tp16425091p16435230.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: How to capture not BookmarkablePage

2008-04-02 Thread freak182

Hello,
when i click submit using IndicatingAjaxButton,it captures the current page?
is this possible?
Thanks a lot..Cheers


igor.vaynberg wrote:
 
 just keep a reference to it, thats all you need
 
 -igor
 
 
 On Tue, Apr 1, 2008 at 6:32 PM, freak182 [EMAIL PROTECTED] wrote:

  Hello,

  1. My problem is how to capture not bookmarkable page? (I already see
 the
  wicket-example on how to capture bookmarkable page)
  2. All data i put in the textfields values/radio selected/checkboxes
  selected/list will be captured also? (of course in a form of html)
  3. For example if i have a constructor page w/ parameters, is there a
 way to
  capture the page?
   e.g
   public TestPage(){ nothing to do here and no wicket codes }

   public TestPage(List list,Page prevPage){ so many logic here }

   Thanks a lot...Cheers.
  --
  View this message in context:
 http://www.nabble.com/How-to-capture-not-BookmarkablePage-tp16434693p16434693.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-capture-not-BookmarkablePage-tp16434693p16443280.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]



How to save pages in the database?

2008-04-07 Thread freak182

Hello,
Correct me if im wrong to my question...My question isI want to save the
entire page to DB. I know that the pages are stored in the session store
then write to the disk. Now how can i access the session store and get the
latest pages then save it to DB?

Thanks a lot.Cheers


-- 
View this message in context: 
http://www.nabble.com/How-to-save-pages-in-the-database--tp16547182p16547182.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: How to save pages in the database?

2008-04-08 Thread freak182

Hello,
What i mean here is that i want to save the exact image of the page (the
main concern here is that i want to capture the user inputed text, the
selected radios and checkboxes and list, basically the html part but the
updated one). I already the try some URLCodingStrategy i found on wicket
example but i have no luck on capturing the updated html text of the current
version of the page. Because client want to check first the inputed values
and all kind of stuff before authenticating...any ideas how to do this and
hoping for code example.

Thanks.



Nick Heudecker wrote:
 
 Why do you want to do this?
 
 On Mon, Apr 7, 2008 at 10:07 PM, freak182 [EMAIL PROTECTED] wrote:
 

 Hello,
 Correct me if im wrong to my question...My question isI want to save
 the
 entire page to DB. I know that the pages are stored in the session store
 then write to the disk. Now how can i access the session store and get
 the
 latest pages then save it to DB?

 Thanks a lot.Cheers


 --
 View this message in context:
 http://www.nabble.com/How-to-save-pages-in-the-database--tp16547182p16547182.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]


 
 
 -- 
 Nick Heudecker
 Professional Wicket Training  Consulting
 http://www.systemmobile.com
 
 Eventful - Intelligent Event Management
 http://www.eventfulhq.com
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-save-pages-in-the-database--tp16547182p16578425.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]



how to get html source

2008-04-10 Thread freak182

Hello,
My problem is how to get the html source of the page with the constructor
having a parameter?...i see an example of getting the html source of the
page with the constructor having no parameter that i think is easy. 

Thanks a lot...Cheers!
-- 
View this message in context: 
http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.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: how to get html source

2008-04-10 Thread freak182


What i mean is the html tags and all kind of stuff of the rendered page. not
the .html file...i want to retrieve that and save to DB.


Mr Mean wrote:
 
 What do you mean get the html source of a page?
 Wicket already fetches the html source for your page if it is located
 in the same package and has the same name as your page. You do not
 need it.
 The constructor is irrelevant for this process.
 
 Maurice
 
 On Thu, Apr 10, 2008 at 10:51 AM, freak182 [EMAIL PROTECTED] wrote:

  Hello,
  My problem is how to get the html source of the page with the
 constructor
  having a parameter?...i see an example of getting the html source of the
  page with the constructor having no parameter that i think is easy.

  Thanks a lot...Cheers!
  --
  View this message in context:
 http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-get-html-source-tp16605236p16623049.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: how to get html source

2008-04-11 Thread freak182

hello,
Thanks this is what i want...


Mr Mean wrote:
 
 If you are only interested in a few of the tags you could overwrite
 onComponentTag.
 
 But if you want the full page you could render everything to a string
 : see
 http://www.nabble.com/Wicket-as-a-template-generator-tp16609133p16610499.html
 
 - I already similar code but the one that do the trick here is the
 this.render();
 
 Another option, probably more efficient if you are only interested in
 dumping all responses in a database is to put a filter in front of the
 wicket filter and capture all output there.
 
 - i will consider this option if the client change the featuresThanks
 a lot...Cheers.
 
 Maurice
 
 On Fri, Apr 11, 2008 at 2:55 AM, freak182 [EMAIL PROTECTED] wrote:


  What i mean is the html tags and all kind of stuff of the rendered page.
 not
  the .html file...i want to retrieve that and save to DB.




  Mr Mean wrote:
  
   What do you mean get the html source of a page?
   Wicket already fetches the html source for your page if it is located
   in the same package and has the same name as your page. You do not
   need it.
   The constructor is irrelevant for this process.
  
   Maurice
  
   On Thu, Apr 10, 2008 at 10:51 AM, freak182 [EMAIL PROTECTED]
 wrote:
  
Hello,
My problem is how to get the html source of the page with the
   constructor
having a parameter?...i see an example of getting the html source of
 the
page with the constructor having no parameter that i think is easy.
  
Thanks a lot...Cheers!
--
View this message in context:
   http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.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]
  
  
  

  --
  View this message in context:
 http://www.nabble.com/how-to-get-html-source-tp16605236p16623049.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-get-html-source-tp16605236p16626781.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]



Question about Modal Window

2008-04-14 Thread freak182

Hello,
I have a question about modal window. When I click the [x] button in the 
modal window, two methods were called namely CloseButtonCallback and
WindowClosedCallback and when I called window.close(target) only
WindowClosedCallback clled.I think this is default behavior. But I want to
call CloseButtonCallback only when i click the [x] button. Is there a way
for this???

Thanks a lot...Cheers
-- 
View this message in context: 
http://www.nabble.com/Question-about-Modal-Window-tp16693875p16693875.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]



How to delay or customized button onSubmit() method

2008-04-15 Thread freak182

Hello,
I have a complicated problem here adn hoping for your bright ideas about my
problem. My problem is, how can can I process the codes after i get the
value from modal window..to be more accurate here is some code snippet:

a modal windows snippet:

modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
public void onClose(AjaxRequestTarget target) {
// enter this method when 
modalWindow.close(target) method called
System.out.println(Get value = 
+modalWindow.getModelObjectAsString());

set_validated(Boolean.valueOf(modalWindow.getModelObjectAsString()));

}
});

indicating ajaxbutton code snippet:

@Override
protected void onSubmit(AjaxRequestTarget target, Form 
form) {
localOverride.show(target);

if(is_validated()){
final Test test= (Test) 
form.getModelObject();

testService.save(test);
setResponsePage(new AckPage(test));
}
}
...how can get first the value in modal window before i process the codes
inside button's onSubmit() method.Of course i can make method on modal
window setWindowClosedCallback method but I wnat it in button onSubmit
method before the user saves the model It will wait the value from the modal
window if its true or false...i hope i make myself clear..Any
suggestions/comments/ideas 

Thanks a lot...Cheers
-- 
View this message in context: 
http://www.nabble.com/How-to-delay-or-customized-button-onSubmit%28%29-method-tp16696645p16696645.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]



Load Modal Window before the page loads

2008-04-24 Thread freak182

Hello,
Im having problem from a modal window loading before a page, is this
possible? because when try this:

public class BasePage extends WebPage {
 public BasePage(){
   if(_isLoadable) modalWindow.show(new AjaxRequestTarget(this));
}
}


ERROR - RequestCycle   - This component is not (yet) coupled to
a page. It has to be able to find the page it is supposed to operate in
before you can call this method (Component#getMarkupId)
org.apache.wicket.WicketRuntimeException: This component is not (yet)
coupled to a page. It has to be able to find the page it is supposed to
operate in before you can call this method (Component#getMarkupId)
at org.apache.wicket.Component.nextAutoIndex(Component.java:1380)
at org.apache.wicket.Component.getMarkupId(Component.java:1422)
at org.apache.wicket.Component.getMarkupId(Component.java:1468)
at
org.apache.wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:344)
at
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.show(ModalWindow.java:278)
---

Thanks a lot..Cheers
-- 
View this message in context: 
http://www.nabble.com/Load-Modal-Window-before-the-page-loads-tp16890707p16890707.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]



Overridable Authorization

2008-04-27 Thread freak182

Hello,
I have a problem about authorization.I look at wicket-in-action source code
and implement authorization from there it work well. I use annotation to tag
Pages that is unauthorize. But i just go on circle.Here is my problem:

@OverridablePage
public class EditUserPage extends OverridableProtectedPage 

1. I want to redirect the RestartResponseAtInterceptPageException page to
overridable page not to the homepage?(considering the user is already login)
2. If redirected to overridable page, the supervsor will enter the username
and password to authorized the user to enter the EditUserPage
3. Then if validated it will redirect to the page where the suppose to
be..e.g. EditUserPage
4. Any code samples ??? :)

Thanks a lot...Cheers

-- 
View this message in context: 
http://www.nabble.com/Overridable-Authorization-tp16930329p16930329.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]



Question on Authentication

2008-04-28 Thread freak182

Hello,
I have a problem about authorization.I look at wicket-in-action source code
and implement authorization from there it work well. I use annotation to tag
Pages that is unauthorize. But i just go on circle.Here is my problem:

@OverridablePage
public class EditUserPage extends OverridableProtectedPage

1. If redirected to overridable page, the supervsor will enter the username
and password to authorized the user to enter the EditUserPage
2. Then if validated it will redirect to the page where the suppose to
be..e.g. EditUserPage but this time it will skip checking
3. Any code samples ??? :)

Thanks a lot...Cheers 
-- 
View this message in context: 
http://www.nabble.com/Question-on-Authentication-tp16951117p16951117.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]



Comet and Wicket

2008-05-05 Thread freak182

Hello,
Is there anyone here try or trying to implement comet(server push concept)
on wicket?

Thanks a lot...Cheers
-- 
View this message in context: 
http://www.nabble.com/Comet-and-Wicket-tp17053968p17053968.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: Comet and Wicket

2008-05-05 Thread freak182

Hello,
My testing so far is good, i just implement seriazable to the
PushTimerService so that it will not yell for ObjectSerialization...does
this work in Tomcat server,JBoss or other application server? or jetty only?


Michael Sparer wrote:
 
 take a look at the wicketstuff-push project
 
 
 freak182 wrote:
 
 Hello,
 Is there anyone here try or trying to implement comet(server push
 concept) on wicket?
 
 Thanks a lot...Cheers
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Comet-and-Wicket-tp17053968p17057179.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: Comet and Wicket

2008-05-05 Thread freak182

Hello,
I deploy the wicket-push example on tomcat latest version and it
worked...and also i will test in JBoss 4.2.x...hoping to work as well bcoz
JBoss use tomcat container...anyway, you can embed jetty container in JBoss
too :)

The only thing problem in my mind is that how to display members in chatroom
and send to specific person in the chatroom...just like meebo thing 

Thanks a lot...Cheers...


Enrique Rodriguez-2 wrote:
 
 On Mon, May 5, 2008 at 3:27 AM, freak182 [EMAIL PROTECTED] wrote:

 Hello,
 My testing so far is good, i just implement seriazable to the
 PushTimerService so that it will not yell for ObjectSerialization...does
 this work in Tomcat server,JBoss or other application server? or jetty
 only?
 
 I'm in the same boat:  I develop with Jetty but have to deploy to
 JBoss/Tomcat for work reasons.  I have the wicket-push-examples
 running with Jetty and have been meaning to try the guidance at this
 old blog post which indicates that it *is possible* to run the Jetty
 cometd servlet in Tomcat.
 
 http://thebdgway.blogspot.com/2006/11/say-hello-world-to-comet.html
 
 Enrique
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Comet-and-Wicket-tp17053968p17071515.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: Comet and Wicket

2008-05-06 Thread freak182

Hello eelco,
Anyway JBoss default servlet container is tomcat, but they are replacing it
with their own container which is jboss-web i dont know if they already
did...anyway, im experementing on wicket-push bcoz the cleint wants some
sort of messaging on their app..(actually our web-app is entirely made on
wicket :)  so im here )...but my problem is how to send specific message
notification to a person logged in...any idea how to accomplish this would
be great...anyway, i have a copy of wicket-in-action it is great i learn a
lot from that.

Thanks a lot...Cheers 



Eelco Hillenius wrote:
 
  Hello,
  I deploy the wicket-push example on tomcat latest version and it
  worked...and also i will test in JBoss 4.2.x...hoping to work as well
 bcoz
  JBoss use tomcat container...anyway, you can embed jetty container in
 JBoss
  too :)
 
 Actually, for all I know JBoss doesn't provide it's own servlet
 container and thus requires Jetty or Tomcat (which is the default?) to
 do the servlet work. So it's not really embedding :-)
 
 I don't know whether work on Tomcat for wicket-push was done or even
 considered. The problem is that Comet is not standardized, so we have
 to implement a specific solution for every servlet container we want
 to support. Help with that is more than welcome of course.
 
 Maybe you could drop a line here:
 http://www.theserverside.com/news/thread.tss?thread_id=49212 or on
 somewhere else with similar discussions.
 
 Eelco
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Comet-and-Wicket-tp17053968p17077415.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: Comet and Wicket

2008-05-06 Thread freak182


  Hello eelco,
  Anyway JBoss default servlet container is tomcat, but they are replacing
 it
  with their own container which is jboss-web i dont know if they already
  did...

Ah, I didn't know that.

 anyway, im experementing on wicket-push bcoz the cleint wants some
  sort of messaging on their app..(actually our web-app is entirely made on
  wicket :)  so im here )...but my problem is how to send specific message
  notification to a person logged in...any idea how to accomplish this
 would
  be great...

Note that you can still implement messaging the 'old fashioned' way by
using Ajax polling (basically a thread in your browser that polls for
new events every n seconds).

But ideally, we have implementations of wicket-push for every project.
I don't know enough about that project to see anything beyond that
though...

Thanks for the reply...i might implement the 'old fashioned' way but i will
exhaust first the wicket-push if can implement it..it is good though but it
gave me headache :-)

 anyway, i have a copy of wicket-in-action it is great i learn a
  lot from that.

Good to hear :-)



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




-- 
View this message in context: 
http://www.nabble.com/Comet-and-Wicket-tp17053968p17093695.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]



CometServlet and WicketFilter

2008-05-07 Thread freak182

Hello,
my problem im having problem integrating the wicket-push example to our
project using wicketfilter and since the wicket-push examples using
wicketservlet..how can i configure this changes?i already ported to
servlet-api 2.5.

i change from...
ServletContext servletContext =
((WebApplication)Application.get()).getServletContext();

to
ServletContext servletContext =
((WebApplication)Application.get()).getWicketFilter().getFilterConfig().getServletContext();

but still error...

java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at
org.wicketstuff.push.cometd.CometdAbstractBehavior.getCometdServletPath(CometdAbstractBehavior.java:221)
at
org.wicketstuff.push.cometd.CometdAbstractBehavior.clinit(CometdAbstractBehavior.java:25)

...any idea how to do this thing???

Thanks a lot...Cheers
-- 
View this message in context: 
http://www.nabble.com/CometServlet-and-WicketFilter-tp17101068p17101068.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: CometServlet and WicketFilter

2008-05-07 Thread freak182

Hello Johan,
I think im running on servlet 2.5 container because in the wicket-push
example it uses the embeded jetty server 6.1.1 and in our project we are
using embeded jetty server 6.1.4..i guess higher version make a difference
or i might be wrong,pls advise?...Thanks a lot...Cheers..


Johan Compagner wrote:
 
 you can upgrade your compile servlet api just fine
 But are you also running in a container that uses 2.5???
 
 johan
 
 
 On Wed, May 7, 2008 at 11:45 AM, freak182 [EMAIL PROTECTED] wrote:
 

 Hello,
 my problem im having problem integrating the wicket-push example to our
 project using wicketfilter and since the wicket-push examples using
 wicketservlet..how can i configure this changes?i already ported to
 servlet-api 2.5.

 i change from...
 ServletContext servletContext =
 ((WebApplication)Application.get()).getServletContext();

 to
ServletContext servletContext =

 ((WebApplication)Application.get()).getWicketFilter().getFilterConfig().getServletContext();

 but still error...

 java.lang.NoSuchMethodError:
 javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at

 org.wicketstuff.push.cometd.CometdAbstractBehavior.getCometdServletPath(CometdAbstractBehavior.java:221)
at

 org.wicketstuff.push.cometd.CometdAbstractBehavior.clinit(CometdAbstractBehavior.java:25)

 ...any idea how to do this thing???

 Thanks a lot...Cheers
 --
 View this message in context:
 http://www.nabble.com/CometServlet-and-WicketFilter-tp17101068p17101068.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]


 
 

-- 
View this message in context: 
http://www.nabble.com/CometServlet-and-WicketFilter-tp17101068p17117634.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: CometServlet and WicketFilter

2008-05-08 Thread freak182

Hello Johan,
Thanks for the advice...i will try to look at for any servlet.jar...anyway
our project is big and i dont know want jars my teammate added-n-added...
:-)

Thanks a lot..Cheers


Johan Compagner wrote:
 
 it seems that jetty 6 really uses servlet api 2.5 yes (this is by the way
 very hard to find... they really should have a list just as tomcat has)
 
 so somehow you have another servlet.jar there
 
 On Thu, May 8, 2008 at 3:32 AM, freak182 [EMAIL PROTECTED] wrote:
 

 Hello Johan,
 I think im running on servlet 2.5 container because in the wicket-push
 example it uses the embeded jetty server 6.1.1 and in our project we are
 using embeded jetty server 6.1.4..i guess higher version make a
 difference
 or i might be wrong,pls advise?...Thanks a lot...Cheers..


 Johan Compagner wrote:
 
  you can upgrade your compile servlet api just fine
  But are you also running in a container that uses 2.5???
 
  johan
 
 
  On Wed, May 7, 2008 at 11:45 AM, freak182 [EMAIL PROTECTED]
 wrote:
 
 
  Hello,
  my problem im having problem integrating the wicket-push example to
 our
  project using wicketfilter and since the wicket-push examples using
  wicketservlet..how can i configure this changes?i already ported to
  servlet-api 2.5.
 
  i change from...
  ServletContext servletContext =
  ((WebApplication)Application.get()).getServletContext();
 
  to
 ServletContext servletContext =
 
 
 ((WebApplication)Application.get()).getWicketFilter().getFilterConfig().getServletContext();
 
  but still error...
 
  java.lang.NoSuchMethodError:
  javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
 at
 
 
 org.wicketstuff.push.cometd.CometdAbstractBehavior.getCometdServletPath(CometdAbstractBehavior.java:221)
 at
 
 
 org.wicketstuff.push.cometd.CometdAbstractBehavior.clinit(CometdAbstractBehavior.java:25)
 
  ...any idea how to do this thing???
 
  Thanks a lot...Cheers
  --
  View this message in context:
 
 http://www.nabble.com/CometServlet-and-WicketFilter-tp17101068p17101068.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]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/CometServlet-and-WicketFilter-tp17101068p17117634.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]


 
 

-- 
View this message in context: 
http://www.nabble.com/CometServlet-and-WicketFilter-tp17101068p17139611.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]



How to use AjaxFormChoiceComponentUpdatingBehavior in Check/CheckGroup

2008-05-12 Thread freak182

Hello,
I having problem integrating AjaxFormChoiceComponentUpdatingBehavior. my
code snippet:

final WebMarkupContainer container = new WebMarkupContainer(wmc);
final CheckGroup chkGrp = new CheckGroup(chkGrp,new ArrayListChk());

final ListView list = new ListView(listBcs,listChk){
@Override
protected void populateItem(ListItem item) {

item.add(new Check(fltId,item.getModel()));
...
}   
};

chkGrp.add(new AjaxFormChoiceComponentUpdatingBehavior(){
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(here 
AjaxFormChoiceComponentUpdatingBehavior);

target.addComponent(amtChk);
target.addComponent(cntChk);
}
});

...it not getting hit inside the onUpdate method..any idea..
Thanks a lot..Cheers


-- 
View this message in context: 
http://www.nabble.com/How-to-use-AjaxFormChoiceComponentUpdatingBehavior-in-Check-CheckGroup-tp17184651p17184651.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]



AjaxFormComponentUpdatingBehavior weird accessing textfields

2008-05-30 Thread freak182

Hello,
I dont know if im only experiencing this but i gave headache.My problem is i
have a AjaxFormComponentUpdatingBehavior on my dropdownchoice and i need to
get the value from a textfield/requiredtextfield but i find it hard...one
suggestion from colleague is to this:

amountTextfield.add(new AjaxFormComponentUpdatingBehavior(onchange){
@Override protected void onUpdate(AjaxRequestTarget 
target){
}
});

my dropdown same also..

dropdown.add(new AjaxFormComponentUpdatingBehavior(onchange){
@Override protected void onUpdate(AjaxRequestTarget 
target){
 
   //get the value of textfield
   }
});

...and its working...but when there no more values or empty string in
textfield the old inputed value was displaying...why could this be?is the
value cache?what could be the workaround for this?

Thanks a lot...Cheers

-- 
View this message in context: 
http://www.nabble.com/AjaxFormComponentUpdatingBehavior-weird-accessing-textfields-tp17552287p17552287.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: AjaxFormComponentUpdatingBehavior weird accessing textfields

2008-05-30 Thread freak182

Hello Igor,
I test what you say but i have no luck...anyway, i think i should be back in
the old ways

Thanks a lot..Cheers


igor.vaynberg wrote:
 
 formcomponentupdatingbehavior does exactly what its name implies, it
 updates a single form component. what you want is
 ajaxformsubmitbehavior which submits the entire form and thus lets you
 access values in other components
 
 -igor
 
 On Thu, May 29, 2008 at 11:13 PM, freak182 [EMAIL PROTECTED] wrote:

 Hello,
 I dont know if im only experiencing this but i gave headache.My problem
 is i
 have a AjaxFormComponentUpdatingBehavior on my dropdownchoice and i need
 to
 get the value from a textfield/requiredtextfield but i find it hard...one
 suggestion from colleague is to this:

 amountTextfield.add(new AjaxFormComponentUpdatingBehavior(onchange){
@Override protected void
 onUpdate(AjaxRequestTarget target){
}
});

 my dropdown same also..

 dropdown.add(new AjaxFormComponentUpdatingBehavior(onchange){
@Override protected void
 onUpdate(AjaxRequestTarget target){
 
   //get the value of textfield
   }
});

 ...and its working...but when there no more values or empty string in
 textfield the old inputed value was displaying...why could this be?is the
 value cache?what could be the workaround for this?

 Thanks a lot...Cheers

 --
 View this message in context:
 http://www.nabble.com/AjaxFormComponentUpdatingBehavior-weird-accessing-textfields-tp17552287p17552287.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormComponentUpdatingBehavior-weird-accessing-textfields-tp17552287p17553098.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]



Multi-ModalWindow

2008-06-05 Thread freak182

Hello,
It is possible to have multiple modal window in a page pop-up?what i mean is
that, if there is a message from user1, the message pop using modal window,
and modal window will pop too if user2 send message. the modal windowS will
just flood on user browser if other user send messages...is this possible?

Thanks a lot...Cheers
-- 
View this message in context: 
http://www.nabble.com/Multi-ModalWindow-tp17662869p17662869.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: Multi-ModalWindow

2008-06-05 Thread freak182

Hello,
I saw it..but i dont want a modal window open inside another modal
window...what i mean is that in the same page will open another modal
window..bcoz i have a trigger that opens a modal window in page (not clicked
by the user)...now when a new trigger comes in another modal window should
open...or should i say same window instance but different content...just
like meebo thing :)

Thanks a lot..Cheers



Nino.Martinez wrote:
 
 Everything is possible, is just time that sets the limits. Did you see 
 the example?
 
 http://www.wicket-library.com/wicket-examples/ajax/modal-window.1
 
 freak182 wrote:
 Hello,
 It is possible to have multiple modal window in a page pop-up?what i mean
 is
 that, if there is a message from user1, the message pop using modal
 window,
 and modal window will pop too if user2 send message. the modal windowS
 will
 just flood on user browser if other user send messages...is this
 possible?

 Thanks a lot...Cheers
   
 
 -- 
 -Wicket for love
 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Multi-ModalWindow-tp17662869p17664122.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: Multi-ModalWindow

2008-06-05 Thread freak182

Hello,
That would be nice if you can do some meebo thing about modal window...you
know,my trigger was came from comet. if i can open-up another window, if
there was a trigger, that would be great...thats why im looking on how to
open-up a new modal window...the tosater are great but i think it did not
fit my requirement..thanks for the ref..

Thanks a lot..Cheers



Nino.Martinez wrote:
 
 Hmm, Im not sure that actually are a modal window. Arent it more of a 
 stackable toaster?
 
 
 This is not directly on the spot, but you'll get the idea. Im working on 
 a toaster using scriptaculous.. 
 
 If I have the time I could probably do 
 something the lines of that.
 
 
 
 http://www.demay-fr.net:8080/WCD13/app/?wicket:bookmarkablePage=%3Awicket.contrib.dojo.examples.ToasterSample
 
 freak182 wrote:
 Hello,
 I saw it..but i dont want a modal window open inside another modal
 window...what i mean is that in the same page will open another modal
 window..bcoz i have a trigger that opens a modal window in page (not
 clicked
 by the user)...now when a new trigger comes in another modal window
 should
 open...or should i say same window instance but different content...just
 like meebo thing :)

 Thanks a lot..Cheers



 Nino.Martinez wrote:
   
 Everything is possible, is just time that sets the limits. Did you see 
 the example?

 http://www.wicket-library.com/wicket-examples/ajax/modal-window.1

 freak182 wrote:
 
 Hello,
 It is possible to have multiple modal window in a page pop-up?what i
 mean
 is
 that, if there is a message from user1, the message pop using modal
 window,
 and modal window will pop too if user2 send message. the modal windowS
 will
 just flood on user browser if other user send messages...is this
 possible?

 Thanks a lot...Cheers
   
   
 -- 
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


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



 

   
 
 -- 
 -Wicket for love
 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Multi-ModalWindow-tp17662869p17665727.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]



How to update parent component from a panel?

2008-06-09 Thread freak182

Hello,
Im having problem of updating parents components.Hereis my problem, there is
page and in that page there is a panel. The panel contain a
FormUpdatingComponent that attached to a dropdownchoice. Now when the
dropdown is triggered, i want to update the parents (the page)
textbox/label..is this possible?

Thanks a lot...Cheers
-- 
View this message in context: 
http://www.nabble.com/How-to-update-parent-component-from-a-panel--tp17748294p17748294.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: How to update parent component from a panel?

2008-06-10 Thread freak182

Hello,
Thats a great patch...it is already been updated in wicket-extensions? so i
can download it?

Thanks a lot...Cheers.


Timo Rantalaiho wrote:
 
 On Mon, 09 Jun 2008, freak182 wrote:
 Im having problem of updating parents components.Hereis my problem, there
 is
 page and in that page there is a panel. The panel contain a
 FormUpdatingComponent that attached to a dropdownchoice. Now when the
 dropdown is triggered, i want to update the parents (the page)
 textbox/label..is this possible?
 
 Hmm, what is FormUpdatingComponent?-) A typo perhaps?
 
 Sure it is possible, e.g. something like
 
 public class FooPage extends WebPage {
 public FooPage() {
 Panel fooPanel = new FooPanel(fooPanel, ... 
 
   Foo initialSelection = ...
   IModel fooModel = new Model(initialSelection);
 final Label display = new Label(foo, fooModel);
   display.setOutputMarkupId(true);
   add(display);
   DropDownChoice selection = new DropDownChoice(fooSelection,
 fooModel, choices);
 selection.add(new AjaxFormComponentUpdatingBehavior(onchange) {
   public void onEvent(AjaxRequestTarget target) {
   target.addComponent(display);
   }
   });
   fooPanel.add(selection);
   ...
 }
 }
 
 But if your Panel is further away from the other
 components directly on the page, this might get trickier.
 For normal requests you can often get away with sharing the
 model, but if passing it all the way to the sending
 component gets nasty, or if you want to repaint something in
 the parent via Ajax, something like this might be easier
 
 public interface FooChoiceListener {
   void onSelection(IModel foo, AjaxRequestTarget target);
 }
 
 public class MyLabel extends Label implements FooChoiceListener {
 ...
   public void onSelection(IModel foo, AjaxRequestTarget target) {
 setModelObject(foo.getObject());
 target.addComponent(this);
   }
 }
 
 
 public class FooPage extends WebPage {
   public FooPage() {
 Label display = new MyLabel(...);
 add(new FooPanel());
 ...
   }
 }
 
 public class FooPanel extends Panel {
   public FooPanel(String id, IModel foo) {
   ...
 DropDownChoice selection = new DropDownChoice(fooSelection,
   fooModel, choices);
 selection.add(new AjaxFormComponentUpdatingBehavior(onchange) {
   public void onEvent(AjaxRequestTarget target) {
 getPage().visitChildren(FooChoiceListener.class, 
new IVisitor() {
  public Object component(Component c) {
((FooChoiceListener) c).onSelection(fooModel, target);
return CONTINUE_TRAVERSAL;
}
   });
   }
 });
   }
 }
 
 A generic eventbroadcaster can be found here
 
   http://issues.apache.org/jira/browse/WICKET-1312
 
 Best wishes,
 Timo
 
 -- 
 Timo Rantalaiho   
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-update-parent-component-from-a-panel--tp17748294p17749764.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: How to update parent component from a panel?

2008-06-10 Thread freak182

Hello,
Thanks...if i have time i will surely play around with it and give you some
feedback..

Thanks a lot..cheers


Timo Rantalaiho wrote:
 
 On Tue, 10 Jun 2008, freak182 wrote:
 Thats a great patch...it is already been updated in wicket-extensions? so
 i
 can download it?
 
 No, but if you want to play around with it, a standalone
 version is here:
 
  
 http://issues.apache.org/jira/secure/attachment/12375765/Generic_EventBroadcaster.patch
 
 It doesn't change any existing classes, so you can just rip 
 the code and include it in your project. Feedback is welcome :)
 
 Some sort of event mechanism is coming to 1.5.
 
 Best wishes,
 Timo
 
 -- 
 Timo Rantalaiho   
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-update-parent-component-from-a-panel--tp17748294p17769985.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: How to update parent component from a panel?

2008-06-11 Thread freak182

Hello Timo,
I already rip out your patch and run the testcase it worked but how can i
implement/intgerate to my project...do you have a working example project
for that?

Thanks a lot..Cheers :)



Timo Rantalaiho wrote:
 
 On Tue, 10 Jun 2008, freak182 wrote:
 Thats a great patch...it is already been updated in wicket-extensions? so
 i
 can download it?
 
 No, but if you want to play around with it, a standalone
 version is here:
 
  
 http://issues.apache.org/jira/secure/attachment/12375765/Generic_EventBroadcaster.patch
 
 It doesn't change any existing classes, so you can just rip 
 the code and include it in your project. Feedback is welcome :)
 
 Some sort of event mechanism is coming to 1.5.
 
 Best wishes,
 Timo
 
 -- 
 Timo Rantalaiho   
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-update-parent-component-from-a-panel--tp17748294p17771941.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: How to update parent component from a panel?

2008-06-11 Thread freak182

Hello Timo,
Thanks a lot...i have attach the files for sample webapp for events.you can
play around with if you have time and forgive me if my codes were ugly :) i
just want to test your patch...any feedback after...

Thanks a lot...Cheers

http://www.nabble.com/file/p17791744/events_core.zip events_core.zip br/
http://www.nabble.com/file/p17791744/pages_app.zip pages_app.zip 


Timo Rantalaiho wrote:
 
 On Wed, 11 Jun 2008, freak182 wrote:
 I already rip out your patch and run the testcase it worked but how can i
 implement/intgerate to my project...do you have a working example project
 for that?
 
 Unfortunately not, but just copy the classes to a suitable 
 package in your project and start using them in the same way 
 as in the test cases.
 
 E.g. something along these lines
 
 public class FooSelectionEvent implements Event {
 private final IModel foo;
 private final AjaxRequestTarget target;
 
 public FooSelectionEvent(IModel foo, AjaxRequestTarget target) {
 this.foo = foo;
   this.target = target;
 }
 
 public Foo getFoo() {
 return (Foo) foo.getObject();
 }
 
 public void addToTarget(Component c) {
 target.addComponent(c);
 }
 }
 
 public interface FooSelectionReceiver extends EventReceiver {
 void onEvent(FooSelectionEvent event);
 }
 
 public class SelectedFooLabel extends Label implements
 FooSelectionReceiver {
 ...
 public void onEvent(FooSelectionEvent event) {
 setModelObject(event.getFoo());
   event.addToTarget(this);
 }
 }
 
 public class FooPanel extends Panel {
 private EventBroadcaster broadcaster = new EventBroadcaster(this);
 ...
 add(new DropDownChoice(fooSelection, fooSelection, fooList)
 .add(new AjaxFormComponentUpdatingBehavior(onchange) {
   public void onEvent(AjaxRequestTarget target) {
   broadcaster.broadcast(FooSelectionReceiver.class, new
   FooSelectionEvent(target, fooSelection));
   }
   });
 ...
 }
 
 
 Now SelectedFooLabel receives the events sent from the 
 DropDownChoice, provided that both component instances are on 
 the same page (you must be careful with repeater items and 
 other replaced components here).  
 
 Best wishes,
 Timo
 
 -- 
 Timo Rantalaiho   
 Reaktor Innovations OyURL: http://www.ri.fi/ 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-update-parent-component-from-a-panel--tp17748294p17791744.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: wicket training/consulting in the SF Bay Area

2008-06-17 Thread freak182


You can buy books in wicket :) i learn a lot from there


m_salman wrote:
 
 Hi,
 
 Is there any one available to provide Wicket training and/or consulting in
 the SF Bay area?
 I need help urgently.  Off hours is fine.  Or if you are not in the Bay
 Area but willing to do it via email.
 
 Thanks,
 
 -Mohammad
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-training-consulting-in-the-SF-Bay-Area-tp17859255p17958799.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]