Field label_indent not working

16 views
Skip to first unread message

Phil Hyde

unread,
Oct 4, 2016, 6:30:18 PM10/4/16
to izpack-user
Is this syntax incorrect?  The wiki says it should be OK.



<field type="text" variable="app.winsvc.name" conditionid="iswinsvc" displayHidden="false" label_indent="true">
<spec txt="DB Service:" id="app.winsvc.id" size="25" default="CreditRisk" />
</field>


ERROR:  'cvc-complex-type.3.2.2: Attribute 'label_indent' is not allowed to appear in element 'field'.'
ERROR:  'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: cvc-complex-type.3.2.2: Attribute 'label_indent'
 is not allowed to appear in element 'field'.'
-> Fatal error :
   Error in file:/C:/installs/crrisk-8.6.0.xxxx-pre-izpack/UserInputSpec.xml at line 13, column 114 : javax.xml.transfor
m.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: cvc-complex-type.3.2.2: Attribute
 'label_indent' is not allowed to appear in element 'field'.
com.izforge.izpack.api.adaptator.XMLException: Error in file:/C:/installs/crrisk-8.6.0.xxxx-pre-izpack/UserInputSpec.xml
 at line 13, column 114 : javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntime
Exception: cvc-complex-type.3.2.2: Attribute 'label_indent' is not allowed to appear in element 'field'.
        at com.izforge.izpack.api.adaptator.impl.XMLParser.parseLineNrFromInputSource(XMLParser.java:183)
        at com.izforge.izpack.api.adaptator.impl.XMLParser.parse(XMLParser.java:232)
        at com.izforge.izpack.compiler.CompilerConfig.addResources(CompilerConfig.java:1937)
        at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerConfig.java:354)
        at com.izforge.izpack.compiler.bootstrap.CompilerLauncher.main(CompilerLauncher.java:55)


René Krell

unread,
Oct 5, 2016, 2:16:52 AM10/5/16
to izpac...@googlegroups.com
2016-10-05 0:30 GMT+02:00 Phil Hyde <phil...@gmail.com>:
> Is this syntax incorrect? The wiki says it should be OK.
>
> https://izpack.atlassian.net/wiki/display/IZPACK/Fields
>
>
> <field type="text" variable="app.winsvc.name" conditionid="iswinsvc"
> displayHidden="false" label_indent="true">
> <spec txt="DB Service:" id="app.winsvc.id" size="25" default="CreditRisk" />
> </field>
>
>
> ERROR: 'cvc-complex-type.3.2.2: Attribute 'label_indent' is not allowed to
> appear in element 'field'.'
> ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
> cvc-complex-type.3.2.2: Attribute 'label_indent'
> is not allowed to appear in element 'field'.'


Hi Phil,

according to the actual code, the documentation is wrong here, I'm
going to remove it.
Thank you for the hint.

René

René Krell

unread,
Oct 5, 2016, 2:44:14 AM10/5/16
to izpack-user
Dne středa 5. října 2016 8:16:52 UTC+2 René Krell napsal(a):
2016-10-05 0:30 GMT+02:00 Phil Hyde <phil...@gmail.com>:
> Is this syntax incorrect?  The wiki says it should be OK.
>
> https://izpack.atlassian.net/wiki/display/IZPACK/Fields
>
>
> <field type="text" variable="app.winsvc.name" conditionid="iswinsvc"
> displayHidden="false" label_indent="true">
> <spec txt="DB Service:" id="app.winsvc.id" size="25" default="CreditRisk" />
> </field>
> ...

...

according to the actual code, the documentation is wrong here, I'm
going to remove it.
Thank you for the hint.


I've better created an issue for this: IZPACK-1452
There is also some unused code to be removed along with this.

Phil Hyde

unread,
Oct 5, 2016, 2:03:52 PM10/5/16
to izpack-user
Oh, OK.  So there is no way to adjust the field positions?

René Krell

unread,
Oct 5, 2016, 3:30:37 PM10/5/16
to izpac...@googlegroups.com

Dne 5. 10. 2016 20:03 napsal uživatel "Phil Hyde" <phil...@gmail.com>:


>
> Oh, OK.  So there is no way to adjust the field positions?

No, there is a common layout for all fields.
Only the divider and title field accept the 'align' attribute, with a different value range each.
See their documentation pages.

Reply all
Reply to author
Forward
0 new messages