Re: Tooltips on AjaxButton

2011-12-15 Thread Martin Grigorov
Hi,

The easiest way is to use AttributeAppender and add 'title' attribute
to each of them.
E.g. addbtn.add(new AttrributeAppender("title", "Add));

If you need more fancy tooltips then you'll need to use some JavaScript library.
Check in WicketStuff Git repo. There are few integrations.

On Fri, Dec 16, 2011 at 3:55 AM, codix  wrote:
> I have this code:
>
>
>    class ExportToolbar extends AbstractToolbar {
>                public ExportToolbar(final DataTable table,
>                                AjaxButton addbtn,
>                                AjaxButton delbtn,
>                                ExportPredefinedListButton savebtn, 
> DropDownChoice ddc) {
>                        super(table);
>                        WebMarkupContainer span1 = new 
> WebMarkupContainer("span1") {
>                                @Override
>                                protected void onComponentTag(ComponentTag 
> tag) {
>                                        tag.put("colspan", 
> table.getColumns().length);
>                                }
>                        };
>                        add(span1);
>                        span1.add(ddc);
>                        span1.add(addbtn);
>                        span1.add(delbtn);
>                        span1.add(savebtn);
>
>                }
>        }
>
>
> How do you add tooltips for the buttons?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Tooltips-on-AjaxButton-tp4202945p4202945.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: Wicket 1.5 with Shiro for security ...

2011-12-15 Thread Martin Grigorov
https://github.com/55minutes/fiftyfive-wicket too

On Thu, Dec 15, 2011 at 11:15 PM, James Carman
 wrote:
> Wicketopia has a shiro plugin too
> On Dec 15, 2011 11:57 AM, "armandoxxx"  wrote:
>
>> Got a little question.
>>
>> I'm wrapping Apache Shiro as security framework for my application.
>>
>> And I use wicket-auth-roles for wrapping shiro login, logout, get roles and
>> stuff methods.
>>
>> I've got a question for isSignedIn() method which is final. I can't
>> override
>> it to ask shiro if user is logged in or not.
>>
>> Any workaround for this? I really don't want to implement all
>> Authentication/Authorization logic on my own, since wicket already
>> implements this.
>>
>> Kind regards
>>
>> Armando
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-with-Shiro-for-security-tp4200743p4200743.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

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



Tooltips on AjaxButton

2011-12-15 Thread codix
I have this code:


class ExportToolbar extends AbstractToolbar {
public ExportToolbar(final DataTable table,
AjaxButton addbtn,
AjaxButton delbtn,
ExportPredefinedListButton savebtn, 
DropDownChoice ddc) {
super(table);
WebMarkupContainer span1 = new 
WebMarkupContainer("span1") {
@Override
protected void onComponentTag(ComponentTag tag) 
{
tag.put("colspan", 
table.getColumns().length);
}
};
add(span1);
span1.add(ddc);
span1.add(addbtn);
span1.add(delbtn);
span1.add(savebtn);

}
}


How do you add tooltips for the buttons?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Tooltips-on-AjaxButton-tp4202945p4202945.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: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Alec Swan
I'll give it a try. Thanks!

On Thu, Dec 15, 2011 at 5:06 PM, Dan Retzlaff  wrote:
> Gotcha. Sorry for not answering your actual question. :)
>
> The ExternalLink navigates the browser to the given URL which is why you're
> seeing the response. AJAX behaviors are designed to be invoked from
> JavaScript. For example, AjaxEventBehavior renders Javascript into
> "onclick" attributes or whatever, which makes the request
> using wicketAjaxGet() in wicket-ajax.js.
>
> For your particular case, if you create a Link instead of ExternalLink,
> then you can use its href in your redirect. The redirect will trigger its
> onClick(), you can add feedback messages, then the whole page will be
> rendered. If you need to avoid rerendering the whole page, then I think
> you'll need to get jQuery to invoke wicketAjaxGet() instead of redirecting
> on completion.
>
> On Thu, Dec 15, 2011 at 3:46 PM, Alec Swan  wrote:
>
>> The click on the link is intercepted and a prompt is shown using
>> jQuery. The user fills in the prompt and clicks OK which redirects to
>> the original link href. So, I need to have a stable URL that I can
>> invoke from jQuery and have the behavior execute.
>>
>> Maybe it's possible to do this with AjaxLink, but I would like to
>> understand how to use AbstractDefaultAjaxBehavior correctly.
>>
>> Thanks,
>>
>> Alec
>>
>> On Thu, Dec 15, 2011 at 4:33 PM, Dan Retzlaff  wrote:
>> > Is there a reason you're avoiding AjaxLink? Its onClick gives you the
>> > AjaxRequestTarget which you can use to render the feedback panel.
>> >
>> > On Thu, Dec 15, 2011 at 3:24 PM, Alec Swan  wrote:
>> >
>> >> Hello,
>> >>
>> >> I have an AbstractAjaxBehavior which is invoked by clicking on a link.
>> >> The behavior needs to write a message to FeedbackPanel upon
>> >> completion. I wasn't able to access AjaxRequestTarget from
>> >> AbstractAjaxBehavior so I switched to using
>> >> AbstractDefaultAjaxBehavior. I implemented
>> >> AbstractDefaultAjaxBehavior#respond(AjaxRequestTarget target) but now
>> >> when the user clicks on a link the browser displays raw ajax response
>> >> (shown below) instead of just updating the feedback panel.
>> >>
>> >> The behavior is used as follows:
>> >>
>> >> getPage().add(ajaxBehaviour);
>> >> ExternalLink ajaxLink = new ExternalLink("ajaxLink",
>> >> ajaxBehaviour.getCallbackUrl(true).toString());
>> >>
>> >> Is there anything special I need to do in
>> >> AbstractDefaultAjaxBehavior#respond method?
>> >>
>> >> Thanks,
>> >>
>> >> Alec
>> >>
>> >> > >> wicket:id="infoFeedback" class="feedbackPanel"
>> >> id="infoFeedbackd">
>> >>
>> >> > >> wicket:id="debugFeedback" class="feedbackPanel"
>> >> id="debugFeedback63">
>> >>
>> >> 
>> >>
>> >> -
>> >> 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: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Dan Retzlaff
Gotcha. Sorry for not answering your actual question. :)

The ExternalLink navigates the browser to the given URL which is why you're
seeing the response. AJAX behaviors are designed to be invoked from
JavaScript. For example, AjaxEventBehavior renders Javascript into
"onclick" attributes or whatever, which makes the request
using wicketAjaxGet() in wicket-ajax.js.

For your particular case, if you create a Link instead of ExternalLink,
then you can use its href in your redirect. The redirect will trigger its
onClick(), you can add feedback messages, then the whole page will be
rendered. If you need to avoid rerendering the whole page, then I think
you'll need to get jQuery to invoke wicketAjaxGet() instead of redirecting
on completion.

On Thu, Dec 15, 2011 at 3:46 PM, Alec Swan  wrote:

> The click on the link is intercepted and a prompt is shown using
> jQuery. The user fills in the prompt and clicks OK which redirects to
> the original link href. So, I need to have a stable URL that I can
> invoke from jQuery and have the behavior execute.
>
> Maybe it's possible to do this with AjaxLink, but I would like to
> understand how to use AbstractDefaultAjaxBehavior correctly.
>
> Thanks,
>
> Alec
>
> On Thu, Dec 15, 2011 at 4:33 PM, Dan Retzlaff  wrote:
> > Is there a reason you're avoiding AjaxLink? Its onClick gives you the
> > AjaxRequestTarget which you can use to render the feedback panel.
> >
> > On Thu, Dec 15, 2011 at 3:24 PM, Alec Swan  wrote:
> >
> >> Hello,
> >>
> >> I have an AbstractAjaxBehavior which is invoked by clicking on a link.
> >> The behavior needs to write a message to FeedbackPanel upon
> >> completion. I wasn't able to access AjaxRequestTarget from
> >> AbstractAjaxBehavior so I switched to using
> >> AbstractDefaultAjaxBehavior. I implemented
> >> AbstractDefaultAjaxBehavior#respond(AjaxRequestTarget target) but now
> >> when the user clicks on a link the browser displays raw ajax response
> >> (shown below) instead of just updating the feedback panel.
> >>
> >> The behavior is used as follows:
> >>
> >> getPage().add(ajaxBehaviour);
> >> ExternalLink ajaxLink = new ExternalLink("ajaxLink",
> >> ajaxBehaviour.getCallbackUrl(true).toString());
> >>
> >> Is there anything special I need to do in
> >> AbstractDefaultAjaxBehavior#respond method?
> >>
> >> Thanks,
> >>
> >> Alec
> >>
> >>  >> wicket:id="infoFeedback" class="feedbackPanel"
> >> id="infoFeedbackd">
> >>
> >>  >> wicket:id="debugFeedback" class="feedbackPanel"
> >> id="debugFeedback63">
> >>
> >> 
> >>
> >> -
> >> 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: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Alec Swan
The click on the link is intercepted and a prompt is shown using
jQuery. The user fills in the prompt and clicks OK which redirects to
the original link href. So, I need to have a stable URL that I can
invoke from jQuery and have the behavior execute.

Maybe it's possible to do this with AjaxLink, but I would like to
understand how to use AbstractDefaultAjaxBehavior correctly.

Thanks,

Alec

On Thu, Dec 15, 2011 at 4:33 PM, Dan Retzlaff  wrote:
> Is there a reason you're avoiding AjaxLink? Its onClick gives you the
> AjaxRequestTarget which you can use to render the feedback panel.
>
> On Thu, Dec 15, 2011 at 3:24 PM, Alec Swan  wrote:
>
>> Hello,
>>
>> I have an AbstractAjaxBehavior which is invoked by clicking on a link.
>> The behavior needs to write a message to FeedbackPanel upon
>> completion. I wasn't able to access AjaxRequestTarget from
>> AbstractAjaxBehavior so I switched to using
>> AbstractDefaultAjaxBehavior. I implemented
>> AbstractDefaultAjaxBehavior#respond(AjaxRequestTarget target) but now
>> when the user clicks on a link the browser displays raw ajax response
>> (shown below) instead of just updating the feedback panel.
>>
>> The behavior is used as follows:
>>
>> getPage().add(ajaxBehaviour);
>> ExternalLink ajaxLink = new ExternalLink("ajaxLink",
>> ajaxBehaviour.getCallbackUrl(true).toString());
>>
>> Is there anything special I need to do in
>> AbstractDefaultAjaxBehavior#respond method?
>>
>> Thanks,
>>
>> Alec
>>
>> > wicket:id="infoFeedback" class="feedbackPanel"
>> id="infoFeedbackd">
>>
>> > wicket:id="debugFeedback" class="feedbackPanel"
>> id="debugFeedback63">
>>
>> 
>>
>> -
>> 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: Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Dan Retzlaff
Is there a reason you're avoiding AjaxLink? Its onClick gives you the
AjaxRequestTarget which you can use to render the feedback panel.

On Thu, Dec 15, 2011 at 3:24 PM, Alec Swan  wrote:

> Hello,
>
> I have an AbstractAjaxBehavior which is invoked by clicking on a link.
> The behavior needs to write a message to FeedbackPanel upon
> completion. I wasn't able to access AjaxRequestTarget from
> AbstractAjaxBehavior so I switched to using
> AbstractDefaultAjaxBehavior. I implemented
> AbstractDefaultAjaxBehavior#respond(AjaxRequestTarget target) but now
> when the user clicks on a link the browser displays raw ajax response
> (shown below) instead of just updating the feedback panel.
>
> The behavior is used as follows:
>
> getPage().add(ajaxBehaviour);
> ExternalLink ajaxLink = new ExternalLink("ajaxLink",
> ajaxBehaviour.getCallbackUrl(true).toString());
>
> Is there anything special I need to do in
> AbstractDefaultAjaxBehavior#respond method?
>
> Thanks,
>
> Alec
>
>  wicket:id="infoFeedback" class="feedbackPanel"
> id="infoFeedbackd">
>
>  wicket:id="debugFeedback" class="feedbackPanel"
> id="debugFeedback63">
>
> 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Update FeedbackPanel from AbstractAjaxBehavior

2011-12-15 Thread Alec Swan
Hello,

I have an AbstractAjaxBehavior which is invoked by clicking on a link.
The behavior needs to write a message to FeedbackPanel upon
completion. I wasn't able to access AjaxRequestTarget from
AbstractAjaxBehavior so I switched to using
AbstractDefaultAjaxBehavior. I implemented
AbstractDefaultAjaxBehavior#respond(AjaxRequestTarget target) but now
when the user clicks on a link the browser displays raw ajax response
(shown below) instead of just updating the feedback panel.

The behavior is used as follows:

getPage().add(ajaxBehaviour);
ExternalLink ajaxLink = new ExternalLink("ajaxLink",
ajaxBehaviour.getCallbackUrl(true).toString());

Is there anything special I need to do in
AbstractDefaultAjaxBehavior#respond method?

Thanks,

Alec







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



Re: Wicket 1.5 with Shiro for security ...

2011-12-15 Thread James Carman
Wicketopia has a shiro plugin too
On Dec 15, 2011 11:57 AM, "armandoxxx"  wrote:

> Got a little question.
>
> I'm wrapping Apache Shiro as security framework for my application.
>
> And I use wicket-auth-roles for wrapping shiro login, logout, get roles and
> stuff methods.
>
> I've got a question for isSignedIn() method which is final. I can't
> override
> it to ask shiro if user is logged in or not.
>
> Any workaround for this? I really don't want to implement all
> Authentication/Authorization logic on my own, since wicket already
> implements this.
>
> Kind regards
>
> Armando
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-with-Shiro-for-security-tp4200743p4200743.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: Spring + MongoDb

2011-12-15 Thread Bruno Borges
Just to let you all know that the Gamboa Project has moved to individual
repositories under the organization Gamboa at http://github.com/gamboa

There are Wicket+Scala archetypes for MongoDB, CouchDB and Java EE 6 (JPA).

The Wicket DSL for Scala is now available too under the wicket-scala
project at wicketstuff.

Martin, thanks for sharing =)

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Mon, Dec 12, 2011 at 6:50 AM, Martin Grigorov wrote:

> Hi,
>
> Here is the Scala project you mention:
> https://github.com/brunoborges/gamboa-project
> If Scala confuses you then all you need is to find pure Java example
> of Spring-Data-Mongodb and another one that uses Spring
> services/repositories from Wicket (e.g. Phonebook example in
> wicketstuff).
>
> On Mon, Dec 12, 2011 at 6:18 AM, Jeff Schneller  wrote:
> > Has anyone implemented wicket with spring and mongodb.  I saw there was
> a project back in June about scala, wicket, spring, and mongodb but the
> scala portion is a bit confusing.
> >
> > Looking for a sample implementation/configuration to get going with.
> >
> > Thanks.
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Wicket app on Tomcat over Apache - 404

2011-12-15 Thread meduolis
Hello, I tried to setup tomcat over apache2 following
https://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
guidelines. But I cant get it working. When I enter any page I always see my
wicket custom 404 error page.

I am using mod_proxy and mod_proxy_http plugins for apache2.
Wicket version 1.4.13
Apache2 version 2.2.14

My configuration looks like that:

Apache2 - httpd.conf:


Tomcat 6 - server.xml:


Maby anybody know how to solve this problem? 
I am start thinking to make tomcat run on 80 port, but I heard that it's not
secure.

Please, help me to fix this apache2 proxying issue

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-app-on-Tomcat-over-Apache-404-tp4201412p4201412.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: Wicket 1.5 with Shiro for security ...

2011-12-15 Thread Carl-Eric Menzel
There's a shiro integration project in wicketstuff-core. We use it and
it works well.

Carl-Eric
www.wicketbuch.de

On Thu, 15 Dec 2011 08:56:25 -0800 (PST)
armandoxxx  wrote:

> Got a little question. 
> 
> I'm wrapping Apache Shiro as security framework for my application. 
> 
> And I use wicket-auth-roles for wrapping shiro login, logout, get
> roles and stuff methods. 
> 
> I've got a question for isSignedIn() method which is final. I can't
> override it to ask shiro if user is logged in or not. 
> 
> Any workaround for this? I really don't want to implement all
> Authentication/Authorization logic on my own, since wicket already
> implements this.
> 
> Kind regards
> 
> Armando
> 
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-with-Shiro-for-security-tp4200743p4200743.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



Wicket 1.5 with Shiro for security ...

2011-12-15 Thread armandoxxx
Got a little question. 

I'm wrapping Apache Shiro as security framework for my application. 

And I use wicket-auth-roles for wrapping shiro login, logout, get roles and
stuff methods. 

I've got a question for isSignedIn() method which is final. I can't override
it to ask shiro if user is logged in or not. 

Any workaround for this? I really don't want to implement all
Authentication/Authorization logic on my own, since wicket already
implements this.

Kind regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-with-Shiro-for-security-tp4200743p4200743.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: Forcing a "No Selection" Option in Drop Down Choice

2011-12-15 Thread Igor Vaynberg
setNullValid(true)

-igor

On Thu, Dec 15, 2011 at 7:42 AM, Richard W. Adams  wrote:
> Is there a way to make DropDownChoice  offer "no selection" as the first
> option, even if the input model matches one of the selections? Perhaps a
> property to set, or method to override? Can't find this issue covered in
> the material I've looked at. I'm looking for some technique I can apply
> against the drop down class (or an extension to it) rather than adding
> dummy data to the model.
>
> Has someone already invented this wheel?
>
>
>
> **
>
> This email and any attachments may contain information that is confidential 
> and/or privileged for the sole use of the intended recipient.  Any use, 
> review, disclosure, copying, distribution or reliance by others, and any 
> forwarding of this email or its contents, without the express permission of 
> the sender is strictly prohibited by law.  If you are not the intended 
> recipient, please contact the sender immediately, delete the e-mail and 
> destroy all copies.
> **

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



Forcing a "No Selection" Option in Drop Down Choice

2011-12-15 Thread Richard W. Adams
Is there a way to make DropDownChoice  offer "no selection" as the first 
option, even if the input model matches one of the selections? Perhaps a 
property to set, or method to override? Can't find this issue covered in 
the material I've looked at. I'm looking for some technique I can apply 
against the drop down class (or an extension to it) rather than adding 
dummy data to the model.

Has someone already invented this wheel?



**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**


Re: display artifact version in webpage

2011-12-15 Thread Per Newgro

Ahh, ok. You're right. You don't check in the generated version. Sure.

Sorry. So no problem.
Per

Am 15.12.2011 10:26, schrieb Chantal Ackermann:

You shouldn't be checking in any automatically generated files!
What is checked in is the markup that contains the placeholder - and
that doesn't change with new builds, of course. That's the point of it,
isn't it?

Chantal



On Thu, 2011-12-15 at 09:46 +0100, Per Newgro wrote:

But this causes a build / version control system issue.

Guess you use version control like svn or cvs. Once you checked in the
html markup
and call a build the markup changed and you have to check in markup again.
So that becomes a "chicken - egg - problem".

Just my 2$
Per

Am 15.12.2011 09:27, schrieb Sjoerd Schunselaar:

Thank you Chantal,

Thats a very easy solution. Didn't think about that.


Kind regards,

Sjoerd Schunselaar


On Wed, Dec 14, 2011 at 1:02 PM, Chantal Ackermann<
chantal.ackerm...@btelligent.de>   wrote:


Hi Sjoerd,

my way of doing this is directly from pom to html using filtering.

Add ${project.version} into the markup (for me, I add it into a top bar
shared by all pages). Change the pom.xml resources configuration to
filter either all html files or only that specific one. (I've simply
changed the original "false" to "true" as I am sure that there is no
other Dollar-notation in the html files.)


 true
 src/main/java
 
 **
 
 
 **/*.java
 



Cheers,
Chantal



On Wed, 2011-12-14 at 11:33 +0100, Sjoerd Schunselaar wrote:

Hi all,

Is there a easy way to display the artifact version which can be set in

de

maven pom.xml file?
I would like to display that artifact version in the title bar.


met vriendelijke groet,

Sjoerd Schunselaar

-
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





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



Re: display artifact version in webpage

2011-12-15 Thread Chantal Ackermann
You shouldn't be checking in any automatically generated files!
What is checked in is the markup that contains the placeholder - and
that doesn't change with new builds, of course. That's the point of it,
isn't it?

Chantal



On Thu, 2011-12-15 at 09:46 +0100, Per Newgro wrote:
> But this causes a build / version control system issue.
> 
> Guess you use version control like svn or cvs. Once you checked in the 
> html markup
> and call a build the markup changed and you have to check in markup again.
> So that becomes a "chicken - egg - problem".
> 
> Just my 2$
> Per
> 
> Am 15.12.2011 09:27, schrieb Sjoerd Schunselaar:
> > Thank you Chantal,
> >
> > Thats a very easy solution. Didn't think about that.
> >
> >
> > Kind regards,
> >
> > Sjoerd Schunselaar
> >
> >
> > On Wed, Dec 14, 2011 at 1:02 PM, Chantal Ackermann<
> > chantal.ackerm...@btelligent.de>  wrote:
> >
> >> Hi Sjoerd,
> >>
> >> my way of doing this is directly from pom to html using filtering.
> >>
> >> Add ${project.version} into the markup (for me, I add it into a top bar
> >> shared by all pages). Change the pom.xml resources configuration to
> >> filter either all html files or only that specific one. (I've simply
> >> changed the original "false" to "true" as I am sure that there is no
> >> other Dollar-notation in the html files.)
> >>
> >> 
> >> true
> >> src/main/java
> >> 
> >> **
> >> 
> >> 
> >> **/*.java
> >> 
> >> 
> >>
> >>
> >> Cheers,
> >> Chantal
> >>
> >>
> >>
> >> On Wed, 2011-12-14 at 11:33 +0100, Sjoerd Schunselaar wrote:
> >>> Hi all,
> >>>
> >>> Is there a easy way to display the artifact version which can be set in
> >> de
> >>> maven pom.xml file?
> >>> I would like to display that artifact version in the title bar.
> >>>
> >>>
> >>> met vriendelijke groet,
> >>>
> >>> Sjoerd Schunselaar
> >>
> >> -
> >> 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: display artifact version in webpage

2011-12-15 Thread Per Newgro

But this causes a build / version control system issue.

Guess you use version control like svn or cvs. Once you checked in the 
html markup

and call a build the markup changed and you have to check in markup again.
So that becomes a "chicken - egg - problem".

Just my 2$
Per

Am 15.12.2011 09:27, schrieb Sjoerd Schunselaar:

Thank you Chantal,

Thats a very easy solution. Didn't think about that.


Kind regards,

Sjoerd Schunselaar


On Wed, Dec 14, 2011 at 1:02 PM, Chantal Ackermann<
chantal.ackerm...@btelligent.de>  wrote:


Hi Sjoerd,

my way of doing this is directly from pom to html using filtering.

Add ${project.version} into the markup (for me, I add it into a top bar
shared by all pages). Change the pom.xml resources configuration to
filter either all html files or only that specific one. (I've simply
changed the original "false" to "true" as I am sure that there is no
other Dollar-notation in the html files.)


true
src/main/java

**


**/*.java




Cheers,
Chantal



On Wed, 2011-12-14 at 11:33 +0100, Sjoerd Schunselaar wrote:

Hi all,

Is there a easy way to display the artifact version which can be set in

de

maven pom.xml file?
I would like to display that artifact version in the title bar.


met vriendelijke groet,

Sjoerd Schunselaar


-
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: display artifact version in webpage

2011-12-15 Thread Sjoerd Schunselaar
Thank you Chantal,

Thats a very easy solution. Didn't think about that.


Kind regards,

Sjoerd Schunselaar


On Wed, Dec 14, 2011 at 1:02 PM, Chantal Ackermann <
chantal.ackerm...@btelligent.de> wrote:

> Hi Sjoerd,
>
> my way of doing this is directly from pom to html using filtering.
>
> Add ${project.version} into the markup (for me, I add it into a top bar
> shared by all pages). Change the pom.xml resources configuration to
> filter either all html files or only that specific one. (I've simply
> changed the original "false" to "true" as I am sure that there is no
> other Dollar-notation in the html files.)
>
> 
>true
>src/main/java
>
>**
>
>
>**/*.java
>
> 
>
>
> Cheers,
> Chantal
>
>
>
> On Wed, 2011-12-14 at 11:33 +0100, Sjoerd Schunselaar wrote:
> > Hi all,
> >
> > Is there a easy way to display the artifact version which can be set in
> de
> > maven pom.xml file?
> > I would like to display that artifact version in the title bar.
> >
> >
> > met vriendelijke groet,
> >
> > Sjoerd Schunselaar
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>