Re: to integrate wicket with itext or any other framework

2011-05-24 Thread hariharansrc
thanks 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3548850.html
Sent from the Users forum 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: to integrate wicket with itext or any other framework

2011-05-24 Thread Phil Franken

Trying to answer your question directly...

Commons reasons to use spring;
Dependency Injection (@Component, @Autowired)
AOP
Transaction Management (@Transactional)
Templates - (Java Mail, LDAP, Hibernate, JDBC, Velocity, etc)
3.1 offers caching, and there are a variety of other projects/templates, 
see the website


On 5/24/2011 2:39 PM, hariharansrc wrote:

yeah i accept what you are saying, first i tried jsp/servlet then jumped to
wicket and from  jdbc i jumped  to hibernate we can quite understand when we
actually face the problems but anybody who already faced the problem when
they give me proper directions it will be easier quite a lot. So can tell me
the proper reason for the reason behind using spring for integrating wicket
and hibernate

The  i am having another clarifications for using any other framework  i
need spring like frameworks for DI
why i am asking is i need japer reports to integrate with wicket

How to find two frameworks need DI, because for JDBC i done that without any
DI

Thanks in advance

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3547875.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread James Carman
On Tue, May 24, 2011 at 2:39 PM, hariharansrc  wrote:
>So can tell me the proper reason for the reason behind using spring for 
>integrating wicket
> and hibernate
>

It's pretty simple.  Using Hibernate is more easily done with
something like Spring.  It doesn't matter if you're using it within
the context of Wicket or JSP or Swing or whatever.  There are certain
things that need to be done that are just handled for you
automatically by Spring.  It has nothing to do with Wicket.

> The  i am having another clarifications for using any other framework  i
> need spring like frameworks for DI
> why i am asking is i need japer reports to integrate with wicket
>
> How to find two frameworks need DI, because for JDBC i done that without any
> DI
>

JDBC is easier done with something like Spring, too, because it will
manage your connections for you and make sure they're properly closed.
:)

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



Re: How to check markup attributes?

2011-05-24 Thread Pedro Santos
ops, invoke the tester.startPageOrComponent before the assert line.

On Tue, May 24, 2011 at 5:25 PM, Pedro Santos  wrote:
> You can create an behavior doing the check in the
> Behavior#onComponentTag. At this point you will have access to the
> final ComponentTag object.
> The test case would look like:
>
> testSomePageOrComponet(){
>  CollectMissingAttributes theBehaviorITalkedAbout = new (...);
>  MyPageOrComponentType pageOrComponentUnderTest = (...);
>  pageOrComponentUnderTest.visit(
>    new visitor(component){ component.add(theBehaviorITalkedAbout); }
>  );
>  assertEmpty(theBehaviorITalkedAbout.getComponentsMissingSomeAttribute());
> }
>
>
> On Tue, May 24, 2011 at 5:12 PM, Craig Pardey
>  wrote:
>> The IMarkupFilter approach only detects attributes coded into the HTML.
>>
>> Is there any way to get it to work for attributes created using the 
>> SimpleAttributeModifier or AttributeAppender? See code.
>>
>> FWIW I also tried the onComponentTag approach documented on the wiki
>> https://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
>>
>> Craig
>>
>> public class MyTextField extends TextF;ield {
>>        
>>        public MyTextField setAttribute(String name, String value){
>>                this.add(new SimpleAttributeModifier(name, value));
>>                return this;
>>        }
>>        
>> }
>>
>> public class MarkupRuleFilter extends AbstractMarkupFilter {
>>        
>>        @Override
>>        public MarkupElement nextTag() throws ParseException {
>>                ComponentTag tag = nextComponentTag();
>>                String attrVal = tag.getAttribute("maxlength");
>>                if( StringUtils.isBlank(attrVal)){
>>                        throw new IllegalStateException("No maxlength defined 
>> for " + tag.getId());
>>                }
>>                return tag;
>>        }
>>        
>> }
>>
>> Craig
>>
>> -Original Message-
>> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> Sent: May-13-11 5:02 PM
>> To: users@wicket.apache.org
>> Subject: Re: How to check markup attributes?
>>
>> if you are doing validation you can use imarkupfilter to check the attrs.
>>
>> -igor
>>
>>
>> On Fri, May 13, 2011 at 1:57 PM, Craig Pardey
>>  wrote:
>>> I'd like to check that particular markup attributes have been set on a 
>>> component.
>>> My first instinct was to use component.getMarkupAttributes(), but the 
>>> JavaDoc quite clearly suggests that it shouldn't be used.
>>>
>>> For example, all TextFields should have a 'maxlength' defined:
>>>
>>> public class MyTextField extends TextField {
>>>      @Override
>>>      public void onAfterRender(){
>>>            super.onAfterRender();
>>>            ValueMap attrs = getMarkupAttributes();
>>>            if( !attrs.containsKey("maxlength")){
>>>                  throw new IllegalStateException("No maxlength defined for 
>>> " + getId());
>>>            }
>>>      }
>>> }
>>>
>>> Is there a better way to achieve this?
>>> Ideally I'd like to do it in a unit test rather than at runtime.
>>>
>>> Craig
>>>
>>>
>>
>> -
>> 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
>>
>>
>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>



-- 
Pedro Henrique Oliveira dos Santos

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



Re: How to check markup attributes?

2011-05-24 Thread Pedro Santos
You can create an behavior doing the check in the
Behavior#onComponentTag. At this point you will have access to the
final ComponentTag object.
The test case would look like:

testSomePageOrComponet(){
  CollectMissingAttributes theBehaviorITalkedAbout = new (...);
  MyPageOrComponentType pageOrComponentUnderTest = (...);
  pageOrComponentUnderTest.visit(
new visitor(component){ component.add(theBehaviorITalkedAbout); }
  );
  assertEmpty(theBehaviorITalkedAbout.getComponentsMissingSomeAttribute());
}


On Tue, May 24, 2011 at 5:12 PM, Craig Pardey
 wrote:
> The IMarkupFilter approach only detects attributes coded into the HTML.
>
> Is there any way to get it to work for attributes created using the 
> SimpleAttributeModifier or AttributeAppender? See code.
>
> FWIW I also tried the onComponentTag approach documented on the wiki
> https://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
>
> Craig
>
> public class MyTextField extends TextF;ield {
>        
>        public MyTextField setAttribute(String name, String value){
>                this.add(new SimpleAttributeModifier(name, value));
>                return this;
>        }
>        
> }
>
> public class MarkupRuleFilter extends AbstractMarkupFilter {
>        
>        @Override
>        public MarkupElement nextTag() throws ParseException {
>                ComponentTag tag = nextComponentTag();
>                String attrVal = tag.getAttribute("maxlength");
>                if( StringUtils.isBlank(attrVal)){
>                        throw new IllegalStateException("No maxlength defined 
> for " + tag.getId());
>                }
>                return tag;
>        }
>        
> }
>
> Craig
>
> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: May-13-11 5:02 PM
> To: users@wicket.apache.org
> Subject: Re: How to check markup attributes?
>
> if you are doing validation you can use imarkupfilter to check the attrs.
>
> -igor
>
>
> On Fri, May 13, 2011 at 1:57 PM, Craig Pardey
>  wrote:
>> I'd like to check that particular markup attributes have been set on a 
>> component.
>> My first instinct was to use component.getMarkupAttributes(), but the 
>> JavaDoc quite clearly suggests that it shouldn't be used.
>>
>> For example, all TextFields should have a 'maxlength' defined:
>>
>> public class MyTextField extends TextField {
>>      @Override
>>      public void onAfterRender(){
>>            super.onAfterRender();
>>            ValueMap attrs = getMarkupAttributes();
>>            if( !attrs.containsKey("maxlength")){
>>                  throw new IllegalStateException("No maxlength defined for " 
>> + getId());
>>            }
>>      }
>> }
>>
>> Is there a better way to achieve this?
>> Ideally I'd like to do it in a unit test rather than at runtime.
>>
>> Craig
>>
>>
>
> -
> 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
>
>



-- 
Pedro Henrique Oliveira dos Santos

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



Re: How to check markup attributes?

2011-05-24 Thread Martin Grigorov
See IResponseFilter. This gives you the final output.

On Tue, May 24, 2011 at 11:12 PM, Craig Pardey
wrote:

> The IMarkupFilter approach only detects attributes coded into the HTML.
>
> Is there any way to get it to work for attributes created using the
> SimpleAttributeModifier or AttributeAppender? See code.
>
> FWIW I also tried the onComponentTag approach documented on the wiki
>
> https://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
>
> Craig
>
> public class MyTextField extends TextField {
> 
>public MyTextField setAttribute(String name, String value){
>this.add(new SimpleAttributeModifier(name, value));
>return this;
>}
>
> }
>
> public class MarkupRuleFilter extends AbstractMarkupFilter {
>
>@Override
>public MarkupElement nextTag() throws ParseException {
>ComponentTag tag = nextComponentTag();
>String attrVal = tag.getAttribute("maxlength");
>if( StringUtils.isBlank(attrVal)){
>throw new IllegalStateException("No maxlength
> defined for " + tag.getId());
>}
>return tag;
>}
>
> }
>
> Craig
>
> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: May-13-11 5:02 PM
> To: users@wicket.apache.org
> Subject: Re: How to check markup attributes?
>
> if you are doing validation you can use imarkupfilter to check the attrs.
>
> -igor
>
>
> On Fri, May 13, 2011 at 1:57 PM, Craig Pardey
>  wrote:
> > I'd like to check that particular markup attributes have been set on a
> component.
> > My first instinct was to use component.getMarkupAttributes(), but the
> JavaDoc quite clearly suggests that it shouldn't be used.
> >
> > For example, all TextFields should have a 'maxlength' defined:
> >
> > public class MyTextField extends TextField {
> >  @Override
> >  public void onAfterRender(){
> >super.onAfterRender();
> >ValueMap attrs = getMarkupAttributes();
> >if( !attrs.containsKey("maxlength")){
> >  throw new IllegalStateException("No maxlength defined
> for " + getId());
> >}
> >  }
> > }
> >
> > Is there a better way to achieve this?
> > Ideally I'd like to do it in a unit test rather than at runtime.
> >
> > Craig
> >
> >
>
> -
> 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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: How to check markup attributes?

2011-05-24 Thread Igor Vaynberg
you can use IResourceFilter to access the generated markup

-igor

On Tue, May 24, 2011 at 1:12 PM, Craig Pardey
 wrote:
> The IMarkupFilter approach only detects attributes coded into the HTML.
>
> Is there any way to get it to work for attributes created using the 
> SimpleAttributeModifier or AttributeAppender? See code.
>
> FWIW I also tried the onComponentTag approach documented on the wiki
> https://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
>
> Craig
>
> public class MyTextField extends TextField {
>        
>        public MyTextField setAttribute(String name, String value){
>                this.add(new SimpleAttributeModifier(name, value));
>                return this;
>        }
>        
> }
>
> public class MarkupRuleFilter extends AbstractMarkupFilter {
>        
>        @Override
>        public MarkupElement nextTag() throws ParseException {
>                ComponentTag tag = nextComponentTag();
>                String attrVal = tag.getAttribute("maxlength");
>                if( StringUtils.isBlank(attrVal)){
>                        throw new IllegalStateException("No maxlength defined 
> for " + tag.getId());
>                }
>                return tag;
>        }
>        
> }
>
> Craig
>
> -Original Message-
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: May-13-11 5:02 PM
> To: users@wicket.apache.org
> Subject: Re: How to check markup attributes?
>
> if you are doing validation you can use imarkupfilter to check the attrs.
>
> -igor
>
>
> On Fri, May 13, 2011 at 1:57 PM, Craig Pardey
>  wrote:
>> I'd like to check that particular markup attributes have been set on a 
>> component.
>> My first instinct was to use component.getMarkupAttributes(), but the 
>> JavaDoc quite clearly suggests that it shouldn't be used.
>>
>> For example, all TextFields should have a 'maxlength' defined:
>>
>> public class MyTextField extends TextField {
>>      @Override
>>      public void onAfterRender(){
>>            super.onAfterRender();
>>            ValueMap attrs = getMarkupAttributes();
>>            if( !attrs.containsKey("maxlength")){
>>                  throw new IllegalStateException("No maxlength defined for " 
>> + getId());
>>            }
>>      }
>> }
>>
>> Is there a better way to achieve this?
>> Ideally I'd like to do it in a unit test rather than at runtime.
>>
>> Craig
>>
>>
>
> -
> 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
>
>

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



RE: How to check markup attributes?

2011-05-24 Thread Craig Pardey
The IMarkupFilter approach only detects attributes coded into the HTML.

Is there any way to get it to work for attributes created using the 
SimpleAttributeModifier or AttributeAppender? See code.  

FWIW I also tried the onComponentTag approach documented on the wiki 
https://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html

Craig

public class MyTextField extends TextField {

public MyTextField setAttribute(String name, String value){
this.add(new SimpleAttributeModifier(name, value));
return this;
}

}

public class MarkupRuleFilter extends AbstractMarkupFilter {

@Override
public MarkupElement nextTag() throws ParseException {
ComponentTag tag = nextComponentTag();
String attrVal = tag.getAttribute("maxlength");
if( StringUtils.isBlank(attrVal)){
throw new IllegalStateException("No maxlength defined 
for " + tag.getId()); 
}
return tag;
}

}

Craig

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: May-13-11 5:02 PM
To: users@wicket.apache.org
Subject: Re: How to check markup attributes?

if you are doing validation you can use imarkupfilter to check the attrs.

-igor


On Fri, May 13, 2011 at 1:57 PM, Craig Pardey
 wrote:
> I'd like to check that particular markup attributes have been set on a 
> component.
> My first instinct was to use component.getMarkupAttributes(), but the JavaDoc 
> quite clearly suggests that it shouldn't be used.
>
> For example, all TextFields should have a 'maxlength' defined:
>
> public class MyTextField extends TextField {
>      @Override
>      public void onAfterRender(){
>            super.onAfterRender();
>            ValueMap attrs = getMarkupAttributes();
>            if( !attrs.containsKey("maxlength")){
>                  throw new IllegalStateException("No maxlength defined for " 
> + getId());
>            }
>      }
> }
>
> Is there a better way to achieve this?
> Ideally I'd like to do it in a unit test rather than at runtime.
>
> Craig
>
>

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


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



Re: Differences "development" vs deployment mode, hierarchy errors

2011-05-24 Thread Martijn Dashorst
This is of course discussed in the awesome, indispensable, always to
go to, why don't I have this on my book shelve, let's make sure Eelco
and Martijn can have a beer, Wicket in Action, chapter 14.

But since you don't have it, or haven't gotten that far (yet), in
development mode Wicket does everything to make the life of developers
easy—being the reason why we call it DEVELOPMENT mode. Exceptions are
shown in full, Wicket debugger is shown, we check for serialization
errors, we check for errors in the component hierarchy, we disable
caching, we disable compression of javascript, we disable minimization
of html, we show wicket tags and attributes, etc. All these things
take CPU time and make requests slow(er).

In deployment mode we do everything to make the life of the users
better. This means disabling all the stuff that helps developers,
disable component hierarchy checks (only the things that prevent
Wicket from rendering, i.e. fatal errors, are now reported), enable
caching of resources, remove wicket tags and attributes, enable
minimization of javascript, etc. Disabling these things save on CPU
cycles and that makes the requests faster.

Each of these settings can be tweaked to your advantage, for example
you can enable resource watching in DEPLOYMENT mode, to enable
modifications to markup and resources on your production boxes.

Free pro tip:

NEVER EVER deploy your production application using DEVELOPMENT, not
even if you tweaked the settings to your desire. Future wicket
versions will enable more features for developer productivity that
will affect your users. Always tweak the DEPLOYMENT settings to make
it more development like.

Now, buy that book, read it again, put a dog-ear at page 336, stash it
under your pillow during the night and enjoy.

Martijn


On Tue, May 24, 2011 at 5:14 PM, Pointbreak
 wrote:
> The differences are implemented in Application.configure(), so check
> there for how deployment and development mode differ. I am not aware of
> any differences in how Wicket handles the component hierarchy. The
> hierarchy in your java-implementation either is or is not consistent
> with the hierarchy in your template files. Wicket doesn't do anything to
> fix or ignore hierarchy issues.
>
> On Tue, 24 May 2011 10:51 -0400, "Brown, Berlin [GCG-PFS]"
>  wrote:
>> I noticed with the web.xml configuration, development mode that I see
>> more hierarchy exceptions thrown by wicket.  Basically, it seems that
>> wicket ignores some hierarchy or markup issues in development mode and
>> not in deployment mode.  What are the main differences between those
>> modes and how do I know what exceptions will be thrown?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



RE: to integrate wicket with itext or any other framework

2011-05-24 Thread John Owen
Wicketstuff provides JasperReports integration. [1]

1 - 
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/jasperreports-parent


-Original Message-
From: hariharansrc [mailto:hariharan...@gmail.com] 
Sent: Tuesday, May 24, 2011 1:39 PM
To: users@wicket.apache.org
Subject: Re: to integrate wicket with itext or any other framework

yeah i accept what you are saying, first i tried jsp/servlet then jumped to
wicket and from  jdbc i jumped  to hibernate we can quite understand when we
actually face the problems but anybody who already faced the problem when
they give me proper directions it will be easier quite a lot. So can tell me
the proper reason for the reason behind using spring for integrating wicket
and hibernate 

The  i am having another clarifications for using any other framework  i
need spring like frameworks for DI 
why i am asking is i need japer reports to integrate with wicket 

How to find two frameworks need DI, because for JDBC i done that without any
DI

Thanks in advance

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3547875.html
Sent from the Users forum mailing list archive at Nabble.com.

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


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



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread hariharansrc
yeah i accept what you are saying, first i tried jsp/servlet then jumped to
wicket and from  jdbc i jumped  to hibernate we can quite understand when we
actually face the problems but anybody who already faced the problem when
they give me proper directions it will be easier quite a lot. So can tell me
the proper reason for the reason behind using spring for integrating wicket
and hibernate 

The  i am having another clarifications for using any other framework  i
need spring like frameworks for DI 
why i am asking is i need japer reports to integrate with wicket 

How to find two frameworks need DI, because for JDBC i done that without any
DI

Thanks in advance

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3547875.html
Sent from the Users forum 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: BookmarkablePageLink with PopupSettings

2011-05-24 Thread Jered Myers

Setting a pageMapName in PopupSettings fixed this problem.

On 5/24/2011 9:16 AM, Jered Myers wrote:
I looks like this problem is not replicating in a Quickstart.  I 
thought it might be an expected behavior of some sort as removing the 
PopupSettings fixed my problem.


On 5/23/2011 10:47 PM, Martin Grigorov wrote:

put a breakpoint in your page constructor and see why it is called twice

On Mon, May 23, 2011 at 11:48 PM, Jered Myers
wrote:


I am attempting to open a new browser tab to a bookmarkable page.  The
constructor of my page is being called twice.  Is there a way I can 
prevent
this from happening?  When I remove the PopupSettings the 
constructor is

only called once, but the page does not open in a new tab.

Here is an example fragment of my implementation in Wicket 1.4.16:

ApplicationClass.java... mount(new 
QueryStringUrlCodingStrategy("MyPage",

MyPage.class));

MyPageLink.java
public class MyPageLink extends BookmarkablePageLink
{
  public MyPageLink(String id, IModel  identifierModel)
  {
 super(id, MyPage.class);
 setParameter("Identifier", identifierModel.getObject());
 PopupSettings popupSettings = new PopupSettings( blah | blah | 
blah);

<-- Only PopupSettings.blah here
 setPopupSettings(popupSettings);
  }
}

MyPage.java
public class MyPage extends WebPage
{
public MyPage(final PageParameters params)
{
   super(params);
}
}

--
Jered


-
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



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



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread James Carman
How about this?  Go write your application just using Hibernate.
Then, after months of trying to figure out how to write the code to
properly manage everything, try it with Spring (or some other DI
container).  Then you'll appreciate it more. :)

On Tue, May 24, 2011 at 1:27 PM, hariharansrc  wrote:
> I got the idea but can you explain it  a bit more about the reason we have to
> go for spring or guice.
> I actually googled and i get that we need dependency injection between
> frameworks is it the reason for we using spring or guice. A brief
> explanation  i need
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3547719.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread hariharansrc
I got the idea but can you explain it  a bit more about the reason we have to
go for spring or guice.
I actually googled and i get that we need dependency injection between
frameworks is it the reason for we using spring or guice. A brief
explanation  i need

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3547719.html
Sent from the Users forum 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: BookmarkablePageLink with PopupSettings

2011-05-24 Thread Jered Myers
I looks like this problem is not replicating in a Quickstart.  I thought 
it might be an expected behavior of some sort as removing the 
PopupSettings fixed my problem.


On 5/23/2011 10:47 PM, Martin Grigorov wrote:

put a breakpoint in your page constructor and see why it is called twice

On Mon, May 23, 2011 at 11:48 PM, Jered Myers
wrote:


I am attempting to open a new browser tab to a bookmarkable page.  The
constructor of my page is being called twice.  Is there a way I can prevent
this from happening?  When I remove the PopupSettings the constructor is
only called once, but the page does not open in a new tab.

Here is an example fragment of my implementation in Wicket 1.4.16:

ApplicationClass.java... mount(new QueryStringUrlCodingStrategy("MyPage",
MyPage.class));

MyPageLink.java
public class MyPageLink extends BookmarkablePageLink
{
  public MyPageLink(String id, IModel  identifierModel)
  {
 super(id, MyPage.class);
 setParameter("Identifier", identifierModel.getObject());
 PopupSettings popupSettings = new PopupSettings( blah | blah | blah);
<-- Only PopupSettings.blah here
 setPopupSettings(popupSettings);
  }
}

MyPage.java
public class MyPage extends WebPage
{
public MyPage(final PageParameters params)
{
   super(params);
}
}

--
Jered


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






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



Re: Differences "development" vs deployment mode, hierarchy errors

2011-05-24 Thread Pointbreak
The differences are implemented in Application.configure(), so check
there for how deployment and development mode differ. I am not aware of
any differences in how Wicket handles the component hierarchy. The
hierarchy in your java-implementation either is or is not consistent
with the hierarchy in your template files. Wicket doesn't do anything to
fix or ignore hierarchy issues.

On Tue, 24 May 2011 10:51 -0400, "Brown, Berlin [GCG-PFS]"
 wrote:
> I noticed with the web.xml configuration, development mode that I see
> more hierarchy exceptions thrown by wicket.  Basically, it seems that
> wicket ignores some hierarchy or markup issues in development mode and
> not in deployment mode.  What are the main differences between those
> modes and how do I know what exceptions will be thrown?

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



Differences "development" vs deployment mode, hierarchy errors

2011-05-24 Thread Brown, Berlin [GCG-PFS]
I noticed with the web.xml configuration, development mode that I see
more hierarchy exceptions thrown by wicket.  Basically, it seems that
wicket ignores some hierarchy or markup issues in development mode and
not in deployment mode.  What are the main differences between those
modes and how do I know what exceptions will be thrown?
 
 


Re: Wicket 1.5 and Request.getRelativePathPrefixToContextRoot() ?

2011-05-24 Thread Matthias Keller

Hi Martin

Thanks for your reply. I actually need this method in order to avoid 
having to rewrite URLs on the reverse proxy which might even be 
impossible, depending on the proxy being used.

Would be great if that method would come back!

Matt

On 2011-05-24 16:18, Martin Grigorov wrote:

The code is simplified and afaik there is no replacement for this method.
You say "it works" but do you still need similar functionality or you ask
just out of curiosity ?

On Tue, May 24, 2011 at 5:14 PM, Matthias Keller
wrote:


Hi

I'm trying to migrate to 1.5 RC4.2 and I've just run into a method that
cannot be resolved anymore:
Request.getRelativePathPrefixToContextRoot() seems to have disappeared?

I used it instead of using the context prefix to circumvent various issues
with URL rewriting because of a reverse proxy in front of our application
which changes the context path for the browser.
Relative URLs however work correctly even if it's rewritten.
Has this functionality been moved elsewhere?

Thanks a lot

Matt

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









smime.p7s
Description: S/MIME Cryptographic Signature


Re: Wicket 1.5 and Request.getRelativePathPrefixToContextRoot() ?

2011-05-24 Thread Martin Grigorov
The code is simplified and afaik there is no replacement for this method.
You say "it works" but do you still need similar functionality or you ask
just out of curiosity ?

On Tue, May 24, 2011 at 5:14 PM, Matthias Keller
wrote:

> Hi
>
> I'm trying to migrate to 1.5 RC4.2 and I've just run into a method that
> cannot be resolved anymore:
> Request.getRelativePathPrefixToContextRoot() seems to have disappeared?
>
> I used it instead of using the context prefix to circumvent various issues
> with URL rewriting because of a reverse proxy in front of our application
> which changes the context path for the browser.
> Relative URLs however work correctly even if it's rewritten.
> Has this functionality been moved elsewhere?
>
> Thanks a lot
>
> Matt
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Wicket 1.5 and Request.getRelativePathPrefixToContextRoot() ?

2011-05-24 Thread Matthias Keller

Hi

I'm trying to migrate to 1.5 RC4.2 and I've just run into a method that 
cannot be resolved anymore:

Request.getRelativePathPrefixToContextRoot() seems to have disappeared?

I used it instead of using the context prefix to circumvent various 
issues with URL rewriting because of a reverse proxy in front of our 
application which changes the context path for the browser.

Relative URLs however work correctly even if it's rewritten.
Has this functionality been moved elsewhere?

Thanks a lot

Matt

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



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread Andrea Del Bene
Spring is not required and you can use just Hibernate. But as best 
practice is strongly recommended to use Hibernate with some kind of 
container framework and let it manage Hibernate for you.
Spring is probably the most used container framework around the world, 
but you can choose other valuable solution like Guice or Seam:


http://blog.yanivkessler.com/2010/05/wicket-and-guice-alternate-route.html?x=stackoverflow



why i have to use spring to integrate wicket and hibernate is there any
spefic reason to do that

any tutorials available to integrate hibernate and wicket

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3546577.html
Sent from the Users forum mailing list archive at Nabble.com.

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






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



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread Martin Grigorov
just because Spring makes transaction management easier
use the same tutorials and cut Spring usage if you don't want it

On Tue, May 24, 2011 at 12:30 PM, hariharansrc wrote:

> why i have to use spring to integrate wicket and hibernate is there any
> spefic reason to do that
>
> any tutorials available to integrate hibernate and wicket
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3546577.html
> Sent from the Users forum 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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: [osgi] package org.apache.wicket.request exported either from core and request packages

2011-05-24 Thread Martin Grigorov
A quick look in the patch shows two code duplications but otherwise looks
OK.
I'd like to ask other OSGi users to take a look as well and add a comment.

On Tue, May 24, 2011 at 12:23 PM, Daan van Etten  wrote:

> Op 27 apr 2011, om 09:43 heeft Daniele Dellafiore het volgende geschreven:
> > This is also my main point to conversation. We're talking about being
> > somewhere really close to a nice out of the box OSGi support. Why not
> take a
> > little effort to make it complete? Also, having packages that span
> through
> > different jars is not really good to me, OSGi or not.
> >
> > Anyway,
> >
> > Daan, I'm really interested in the classloading problem you had. Actually
> I
> > did succeed in making a wicket-spring webapp start and work 100%.
> > But after the wicket package is reinstalled or just refreshed in the
> > container, @SpringBean injection stop working with:
>
> My colleague created a JIRA ticket with an elaborate description of the
> problem. There's also a patch included.
>
> https://issues.apache.org/jira/browse/WICKET-3737
>
> Regards,
>
> Daan
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: to integrate wicket with itext or any other framework

2011-05-24 Thread hariharansrc
why i have to use spring to integrate wicket and hibernate is there any
spefic reason to do that

any tutorials available to integrate hibernate and wicket

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3546577.html
Sent from the Users forum 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: [osgi] package org.apache.wicket.request exported either from core and request packages

2011-05-24 Thread Daan van Etten
Op 27 apr 2011, om 09:43 heeft Daniele Dellafiore het volgende geschreven:
> This is also my main point to conversation. We're talking about being
> somewhere really close to a nice out of the box OSGi support. Why not take a
> little effort to make it complete? Also, having packages that span through
> different jars is not really good to me, OSGi or not.
> 
> Anyway,
> 
> Daan, I'm really interested in the classloading problem you had. Actually I
> did succeed in making a wicket-spring webapp start and work 100%.
> But after the wicket package is reinstalled or just refreshed in the
> container, @SpringBean injection stop working with:

My colleague created a JIRA ticket with an elaborate description of the 
problem. There's also a patch included.

https://issues.apache.org/jira/browse/WICKET-3737

Regards,

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



Re: facebook like iframe in wicket

2011-05-24 Thread Philipp
As far as I can guess your iframe has nothing to do with the velocity 
issue. The velocity error occurs, if the global library cannot be found. 
Nevertheless, that error is not crucial and should rather considered as 
a warning. See https://issues.apache.org/jira/browse/VELOCITY-86 for 
more information.






I tried something like that but faced "Error using VM library :
VM_global_library.vm" and got stuck. I am new to velocity but I feel it can
provide the answer to my problem.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544934.html
Sent from the Users forum 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