Re: Wicket cannot work on OC4J (ias 10g)?

2008-04-17 Thread xdirewolfx

Oracle IAS 10.1.3.1.0. We had a product in spring hibernate JPA and wicket (+
ext-js). We deployed in many web/app server but this was the first time we
deploy to oc4j (due to client's requirements hooking up to oc4j sso). 

WicketFilter doesnot work so we switched to WicketServlet and everything is
running fine.


Thomas Lutz wrote:
 
 Which version of oc4j are you using ?
 
 I (am forced to run :-) ) run a 1.3.2 on a oc4j 10.1.2.2.0 without any 
 problems.
 
 It's  rather small, just a viewer and no editing, but it's working with 
 WicketFilter.
 
 regards,
 tom
 
 
 Igor Vaynberg schrieb:
 from what i remember, filter support is broken in oracle app server.
 dont quote me on that though, but do search this list...

 -igor


 On Wed, Apr 16, 2008 at 10:15 PM, xdirewolfx [EMAIL PROTECTED]
 wrote:
   
  Thank you for your prompt reply. It s working well now



  igor.vaynberg wrote:
  
   try using wicketservlet instead of wicketfilter
  
   -igor
  
   On Wed, Apr 16, 2008 at 8:46 PM, xdirewolfx [EMAIL PROTECTED]
 wrote:
  
I can deploy the application can kick up and the first page can be
 shown
   but
the rest of the stuff do not work as normal:
 - forms lost validations
 - buttons do not work
etc..
  
wicket 1.3.1
--
View this message in context:
  
 http://www.nabble.com/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16738242.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/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16739041.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]

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

-- 
View this message in context: 
http://www.nabble.com/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16744020.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]



Page Expire

2008-04-16 Thread xdirewolfx

Hi,

I'm using wicket and ext-js in a portlet style loading different wicket
pages in. However, I face an issue when user did not touch a particular page
for a while, it will get expired. What is the best way to work around this
in ajax based web app in wicket?
-- 
View this message in context: 
http://www.nabble.com/Page-Expire-tp16722304p16722304.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 cannot work on OC4J (ias 10g)?

2008-04-16 Thread xdirewolfx

I can deploy the application can kick up and the first page can be shown but
the rest of the stuff do not work as normal:
 - forms lost validations
 - buttons do not work
etc..

wicket 1.3.1
-- 
View this message in context: 
http://www.nabble.com/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16738242.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 cannot work on OC4J (ias 10g)?

2008-04-16 Thread xdirewolfx

Thank you for your prompt reply. It s working well now

igor.vaynberg wrote:
 
 try using wicketservlet instead of wicketfilter
 
 -igor
 
 On Wed, Apr 16, 2008 at 8:46 PM, xdirewolfx [EMAIL PROTECTED] wrote:

  I can deploy the application can kick up and the first page can be shown
 but
  the rest of the stuff do not work as normal:
   - forms lost validations
   - buttons do not work
  etc..

  wicket 1.3.1
  --
  View this message in context:
 http://www.nabble.com/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16738242.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/Wicket-cannot-work-on-OC4J-%28ias-10g%29--tp16738242p16739041.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 and Existing Strut application

2008-04-08 Thread xdirewolfx

Hi,

I'm thinking of migrating the current strut web app to wicket. However, the
application is pretty large in size. Is there any pointer to migrate page by
page or section by section? (2 web app existing at the same time and
behaving as a single web app)

Thank you in advance
-- 
View this message in context: 
http://www.nabble.com/Wicket-and-Existing-Strut-application-tp16547984p16547984.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 Model and JPA inheritance

2008-03-18 Thread xdirewolfx

Hi guys,

Say I got these 3 classes:
@Entity
@Table(name=owner)
@Inheritance
public abstract class Owner implements BaseObject{}

and
@Entity
@DiscriminatorValue(value=project)
public class OwnerProject extends Owner{}

and

@Entity
@DiscriminatorValue(value=other)
public class OwnerSomeOtherProject extends Owner{}

It is no issue when I want to list out all owners. How do I then add another
column to indicate the types with minimal work?
-- 
View this message in context: 
http://www.nabble.com/Wicket-Model-and-JPA-inheritance-tp16135997p16135997.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]



Sanity check: rendering xml to be comsumed by other applications

2008-03-15 Thread xdirewolfx

Hi 

Basically I have been working alot of spring and hibernate stack. Everything
is fine until you need to actually expose web service which comprises of
part of your domain models. Hibernate will let you go in a loop or you will
run into a famous error (lazily init :)). As such I have always used DTOs to
deliver my ws data. (I hate DTOs by the way)

When I look at wicket, you can safely render the content in XML so I thought
if I say expose my url .../MyService and param1, param2 etc... in a rest
like manner to let other applications consume (using wicket models so no
more DTOs to write). Just to check if it is done by anyone and what may be
the drawback of this.
-- 
View this message in context: 
http://www.nabble.com/Sanity-check%3A-rendering-xml-to-be-comsumed-by-other-applications-tp16074721p16074721.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]



Any quickstart for wicket-terracotta

2008-01-13 Thread xdirewolfx

I am aware that there is such an integration between wicket and terracotta
however, I have yet to see any example. Anyone can point me to that?
-- 
View this message in context: 
http://www.nabble.com/Any-quickstart-for-wicket-terracotta-tp14783593p14783593.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 do you do this in wicket?

2008-01-13 Thread xdirewolfx

Thank you Martijin.

Ken

Martijn Dashorst wrote:
 
 Have one session that knows when authentication has happened...
 
 public MySession extends WebSession {
 private String username;
 
 public void setUsername(){}
 
 public boolean isAuthenticated() {
 return username != null;
 }
 }
 
 Then in your web page you can do:
 
 if (!((MySession)getSession).isAuthenticated()) throw
 restartrequestatinterceptpage(...);
 
 Martijn
 On Jan 13, 2008 7:21 AM, xdirewolfx [EMAIL PROTECTED] wrote:

 Assume I have created 2 different sessions:
  - standard session
  - authenticated session

 I have a class MyWebPage with this method:
  - MyWebPage(boolean isAuthenticated) : true = request authentication

 how do I do this programmatically?
 --
 View this message in context:
 http://www.nabble.com/How-do-you-do-this-in-wicket--tp14782689p14782689.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]


 
 
 
 -- 
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-do-you-do-this-in-wicket--tp14782689p14786207.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 do you do this in wicket?

2008-01-13 Thread xdirewolfx

The reason we went for such an approach was because user will design the
lookfeel, content and whether it is public or private(authentication
needed) on runtime using view metadata. We used proprietary technology
earlier on and decided to give a short in wicket as it fits better and much
more intuitive. Keep up the good work wicket team.

Martijn Dashorst wrote:
 
 Another option is too look at wicket-auth-roles. It is really simple
 (basically an example) but for a lot of applications it is in the
 sweet spot. Two default roles: user and admin.
 
 The wicket examples have the auth roles examples in them.
 
 Martijn
 
 On Jan 13, 2008 3:31 PM, xdirewolfx [EMAIL PROTECTED] wrote:

 Thank you Martijin.

 Ken


 Martijn Dashorst wrote:
 
  Have one session that knows when authentication has happened...
 
  public MySession extends WebSession {
  private String username;
 
  public void setUsername(){}
 
  public boolean isAuthenticated() {
  return username != null;
  }
  }
 
  Then in your web page you can do:
 
  if (!((MySession)getSession).isAuthenticated()) throw
  restartrequestatinterceptpage(...);
 
  Martijn
  On Jan 13, 2008 7:21 AM, xdirewolfx [EMAIL PROTECTED] wrote:
 
  Assume I have created 2 different sessions:
   - standard session
   - authenticated session
 
  I have a class MyWebPage with this method:
   - MyWebPage(boolean isAuthenticated) : true = request authentication
 
  how do I do this programmatically?
  --
  View this message in context:
 
 http://www.nabble.com/How-do-you-do-this-in-wicket--tp14782689p14782689.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]
 
 
 
 
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-do-you-do-this-in-wicket--tp14782689p14786207.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]


 
 
 
 -- 
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-do-you-do-this-in-wicket--tp14782689p14787020.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: integrating extjs with wicket

2008-01-12 Thread xdirewolfx

I will be helping out as well as my company is using extjs and we are
planning to move to wicket from existing web framework

Matt Jensen-2 wrote:
 
 
 I would be willing to contribute to this project, but I don't have the 
 knowledge of Wicket internals (nor ExtJS internals, really) to pull off 
 the core design.  If somebody starts this, he/she can count on a couple 
 hours per week from me.
 
 Martijn Dashorst wrote:
 Sounds like a good wicketstuff project... Do you care to start one?

 Martijn

 On Jan 9, 2008 7:02 PM, Paolo Di Tommaso [EMAIL PROTECTED]
 wrote:
   
 This is really an interesting topic!

 I've made some Wicket-Extjs integration tests and I haven't found any
 particular issues to make them work smoothly together.

 Extjs UI widgets can be created dynamically or can be attach to existing
 HTML elements using the element IDs.

 Following the latter approach is quite easy integrate Extjs with Wicket.

 The simplest way I've tried is using a behavior to 'attach' an Extjs
 widget
 to Wicket component.

 For example:

 public class ExtDateFieldBehavior extends ExtAbstractBehavior{

 @Override
 String getExtjsClassName() {
 return Ext.form.DateField;
 }

 }

 public abstract class ExtAbstractBehavior extends AbstractBehavior {


 /**
  * Used to add all common Extjs required JavaScript and CSS
 resources
  */
 @Override
 public void bind(Component component) {
 if( component == null ) throw new
 IllegalArgumentException(Argument
 cannot be null);
 component.setOutputMarkupId(true);
 component.add(HeaderContributor.forCss( Extjs.Css.EXT_ALL ));
 component.add(HeaderContributor.forJavaScript( Extjs.Js.EXT_BASE
 ));
 component.add(HeaderContributor.forJavaScript(
 Extjs.Js.EXT_ALL_DEBUG ));
 }


 abstract String getExtjsClassName();

 abstract String getOptions();

 @Override
 public void onRendered( Component component ) {
 /* create a copy of options */
 Config options = new Config( config );
 /* initialization */
 config(component,options);
 /* get the string version */
 String sConfig = Extjs.serialize(options);

 String extjs = new  + getExtjsClassName() + ( + getOptions()
 +
 );;
 //TODO log here

 Response r = component.getResponse();
 r.write( JavascriptUtils.SCRIPT_OPEN_TAG );
 r.write( extjs );
 r.write( JavascriptUtils.SCRIPT_CLOSE_TAG );
 }
 }


 That's all!

 Obviously this is just a simple test but it works and can be extended
 easily
 for other widgets.


 What I've found not trivial is to pass/define the Extjs widget
 property/configuration in a easy/elegant way.

 Would be interesting discuss this...

 -- Paolo





 On Jan 9, 2008 6:25 PM, Jeremy Fergason [EMAIL PROTECTED]
 wrote:

 
 wicket seems to provide some nice management classes like TextField,
 that
 do
 things like set the value for you, I don't see how to integrate this
 with
 a
 javascript solution like ExtJs which does not use an input type=text
 ...
 tag.  It could be something very simple and I am just missing it, if so
 please point me in the right direction.

 Thanks!

 On Jan 9, 2008 10:19 AM, Martijn Dashorst [EMAIL PROTECTED]
 wrote:

   
 What is keeping you from building it?

 Martijn

 On Jan 9, 2008 6:15 PM, Reinout van Schouwen [EMAIL PROTECTED]
 wrote:
 
 Op woensdag 09-01-2008 om 09:07 uur [tijdzone -0700], schreef Jeremy
 Fergason:

   
 I'm just starting out with wicket and I would like to use a
 
 client-side
 
 javascript library--ExtJs, to enhance the end user experience.
 
 +1

 At my company we use Ext2 and are very enthousiastic about it.
 I want to move us from Struts to Wicket but lack of support for Ext2
 would be a roadblock...

 --
 Reinout van Schouwen




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


   

 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

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


 



   
 
 
 

-- 
View this message in context: 
http://www.nabble.com/integrating-extjs-with-wicket-tp14715123p14782690.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 do you do this in wicket?

2008-01-12 Thread xdirewolfx

Assume I have created 2 different sessions:
 - standard session
 - authenticated session

I have a class MyWebPage with this method:
 - MyWebPage(boolean isAuthenticated) : true = request authentication

how do I do this programmatically?
-- 
View this message in context: 
http://www.nabble.com/How-do-you-do-this-in-wicket--tp14782689p14782689.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: Is it possible to use wicket without having any html page?

2008-01-12 Thread xdirewolfx

I was trying to achieve the same thing to use one single web page to markup
into any format desired. What I did was to store HTML markup scriptlet of
popular components in a data source and using metadata on runtime to
determine a view (from my current application architecture)
On wicket side, I used MarkupResourceStreamProvider and StringResourceStream
to construct the markup on runtime. The java components to manipulate these
markups are being injected using guice.

legolas wrote:
 
 Hi
 Is it possible to use wicket without having any html page?
 Just writing java code and pointing the browser to some url and it goes
 forward?
 
 Thanks
 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14782785.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]