Re: Wicket Example

2017-11-21 Thread Martin Grigorov
I've reworked the Docker image creation so now the examples are deployed as
ROOT.war

I've also created https://issues.apache.org/jira/browse/INFRA-15525 because
new versions of the Docker images do not update the examples VM.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Sat, Nov 18, 2017 at 6:02 PM, Andrea Del Bene 
wrote:

> If the problem mainly concerns the user guide, we can consider also to fix
> the links with the new url.
>
>
> On 18/11/2017 06:12, Martin Grigorov wrote:
>
>> This can be fixed in wicket-examples/pom.xml:
>> https://github.com/apache/wicket/blob/01e76cf5e6f13962af0b33
>> 6f7d02e256cb0ea68e/wicket-examples/pom.xml#L301-L303
>> wicket-examples.war should be renamed to ROOT.war before being copied to
>> /usr/local/tomcat/webapps
>> I don't see a way to do it with docker-maven-plugin but it should be
>> possible to be done with another Maven plugin before executing
>> docker-maven-plugin.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Fri, Nov 17, 2017 at 11:02 PM, Chris Colman <
>> chr...@stepaheadsoftware.com
>>
>>> wrote:
>>> I just noticed this link is also down at the moment:
>>>
>>> http://examples6x.wicket.apache.org/ajax/tabbed-panel
>>>
>>> but if you go to:
>>>
>>> http://examples6x.wicket.apache.org/wicket-examples/index.html
>>>
>>> and click 'Ajax' then 'Tabbed Panel' you arrive a working tabbed-panel
>>> page:
>>>
>>> http://examples6x.wicket.apache.org/wicket-examples/ajax/tabbed-panel
>>>
>>> but the URL is different to the above so it looks like the URL has
>>> changed slightly.
>>>
>>> Any chance of adding a redirect for those older URLs so that links in SO
>>> and other wicket example pages on the web don't throw 404s?
>>>
>>>
>>> -Original Message-
 From: Mihir Chhaya [mailto:mihir.chh...@gmail.com]
 Sent: Tuesday, 31 October 2017 7:01 AM
 To: users@wicket.apache.org
 Subject: Wicket Example

 Hello,

 Live Examples link on https://wicket.apache.org/ is throwing 404

>>> error.
>>>
 Could anybody please direct me to working link?

 Thanks,
 -Mihir.

>>> -
>>> 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
>
>


Can I use wicket to emend my markup?

2017-11-21 Thread Per Newgro
Hello,

i try to render HTML markup with flying saucer to PDF.
In case i render the page by wicket and use that result markup in my flying 
saucer wicket resource, everything is ok.

Because i need to generate some SVG by browser using javascript (d3.js) i would 
like to send the markup from browser to my FS wicket resource.

My main problem is that sending the html by using 
document.documentElement.outerHTML destroys the markup. It cuts of the end-tag 
from my
link element. So the flying saucer complains on a missing link end-tag.

Example

My original html looks like this

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>



Apache Wicket Quickstart






Apache Wicket




after sending result of document.documentElement.outerHTML as form-data to 
wicket resource i receive

 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>

Apache Wicket Quickstart
http://localhost:8080/style.css; 
type="text/css" media="screen" title="Stylesheet">





...

The meta and link end-tags have been removed (i suspect the browser doing that).

Flying saucer complains then with
1:36:41.764 [qtp2116908859-19] WARN  RequestCycleExtra - Handling the following 
exception
org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using 
TrAX transformer). org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 
4; Elementtyp "link" muss mit dem entsprechenden Endtag "" beendet 
werden.
at 
org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.transform(XMLResource.java:222)
 ~[flying-saucer-core-9.1.6.jar:?]
at 
org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:181)
 ~[flying-saucer-core-9.1.6.jar:?]
at org.xhtmlrenderer.resource.XMLResource.load(XMLResource.java:84) 
~[flying-saucer-core-9.1.6.jar:?]
at 
org.xhtmlrenderer.pdf.ITextRenderer.setDocumentFromString(ITextRenderer.java:161)
 ~[flying-saucer-pdf-itext5-9.1.6.jar:?]


What i would like to know is - can i send the markup to a "wicket class" and 
emend the corrupt tags?
I would like to avoid to handle every corrupt tag manually.

Thanks for your support
Per

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